Add rule-set releases

This commit is contained in:
世界
2023-11-29 14:26:06 +08:00
parent b1dc5b3c1d
commit 4062751566
10 changed files with 141 additions and 175 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
fmt:
@gofumpt -l -w .
@gofmt -s -w .
@gci write --custom-order -s standard -s "prefix(github.com/sagernet/)" -s "default" .
fmt_install:
go install -v mvdan.cc/gofumpt@latest
go install -v github.com/daixiang0/gci@latest
lint:
golangci-lint run ./...
lint_install:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
test:
go test -v ./...