mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Fix lint
This commit is contained in:
parent
b2bb9b3d2a
commit
e5c59fc756
3 changed files with 31 additions and 16 deletions
15
Makefile
15
Makefile
|
@ -5,4 +5,17 @@ fmt:
|
|||
|
||||
fmt_install:
|
||||
go install -v mvdan.cc/gofumpt@latest
|
||||
go install -v github.com/daixiang0/gci@v0.4.0
|
||||
go install -v github.com/daixiang0/gci@v0.4.0
|
||||
|
||||
lint:
|
||||
GOOS=linux golangci-lint run .
|
||||
GOOS=android golangci-lint run .
|
||||
GOOS=windows golangci-lint run .
|
||||
GOOS=darwin golangci-lint run .
|
||||
GOOS=freebsd golangci-lint run .
|
||||
|
||||
lint_install:
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
|
||||
test:
|
||||
go test -v ./...
|
Loading…
Add table
Add a link
Reference in a new issue