summaryrefslogtreecommitdiff
path: root/Makefile
blob: f45eb17cb9bb379f640fc34c1ec1137e71fe5a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 ./...