Chore: update linter

This commit is contained in:
xjasonlyu
2023-02-21 14:55:01 +08:00
parent 041bc510ea
commit 1f63b239c3
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ linters-settings:
gci:
sections:
- standard
- prefix(github.com/xjasonlyu/tun2socks/v2)
- prefix(github.com/xjasonlyu/tun2socks)
- default
staticcheck:
go: '1.20'
+5 -1
View File
@@ -167,7 +167,11 @@ all-arch: $(UNIX_ARCH_LIST) $(WINDOWS_ARCH_LIST)
releases: $(unix_releases) $(windows_releases)
lint:
golangci-lint run --disable-all -E govet -E gofumpt -E megacheck ./...
GOOS=darwin golangci-lint run ./...
GOOS=windows golangci-lint run ./...
GOOS=linux golangci-lint run ./...
GOOS=freebsd golangci-lint run ./...
GOOS=openbsd golangci-lint run ./...
clean:
rm -rf $(BUILD_DIR)