File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 go-version-file : go.mod
1919 - name : Ensure go.mod is already tidied
2020 run : go mod tidy && git diff -s --exit-code go.sum
21- - run : make vet fmt lint test
21+ - run : make lint test
2222 - run : make dist
2323 - run : make validate-krew-manifest
Original file line number Diff line number Diff line change 1+ run :
2+ timeout : 5m
3+ linters :
4+ disable-all : true
5+ enable :
6+ - errcheck
7+ - gofmt
8+ - gosimple
9+ - govet
10+ - ineffassign
11+ - staticcheck
12+ - typecheck
13+ - unused
Original file line number Diff line number Diff line change @@ -31,18 +31,14 @@ $(GORELEASER_FILTER):
3131build-cross : $(GORELEASER )
3232 $(GORELEASER ) build --snapshot --clean
3333
34- .PHONY : vet
35- vet :
36- $(GO ) vet ./...
37-
38- .PHONY : fmt
39- fmt :
40- $(GO ) fmt ./...
41-
4234.PHONY : lint
43- lint : vet fmt $(GOLANGCI_LINT )
35+ lint : $(GOLANGCI_LINT )
4436 $(GOLANGCI_LINT ) run
4537
38+ .PHONY : lint-fix
39+ lint-fix : $(GOLANGCI_LINT )
40+ $(GOLANGCI_LINT ) run --fix
41+
4642.PHONY : test
4743test :
4844 $(GO ) test -v ./...
You can’t perform that action at this time.
0 commit comments