File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11OUT_DIR := ./out
22GO_FILES := $(shell find . -type f \( -iname '* .go' \) )
3+ GO_MODULE := github.com/pushbits/cli
34
45.PHONY : build
56build :
@@ -12,17 +13,18 @@ clean:
1213
1314.PHONY : test
1415test :
15- stdout=$$(gofumpt -l . 2>&1 ) ; if [ " $$ stdout" ]; then exit 1; fi
16+ if [ -n " $$ (gofumpt -l $( GO_FILES) )" ]; then echo " Code is not properly formatted" ; exit 1; fi
17+ if [ -n " $$ (goimports -l -local $( GO_MODULE) $( GO_FILES) )" ]; then echo " Imports are not properly formatted" ; exit 1; fi
1618 go vet ./...
1719 misspell -error $(GO_FILES )
1820 gocyclo -over 10 $(GO_FILES )
1921 staticcheck ./...
20- errcheck ./...
22+ errcheck -ignoregenerated ./...
2123 gocritic check -disable=' #experimental,#opinionated' -@ifElseChain.minThreshold 3 ./...
2224 revive -set_exit_status ./...
2325 nilaway ./...
2426 go test -v -cover ./...
25- gosec -exclude-dir=tests ./...
27+ gosec -exclude-generated ./...
2628 govulncheck ./...
2729 @printf ' \n%s\n' " > Test successful"
2830
3537 go install github.com/mgechev/revive@latest
3638 go install github.com/securego/gosec/v2/cmd/gosec@latest
3739 go install go.uber.org/nilaway/cmd/nilaway@latest
40+ go install golang.org/x/tools/cmd/goimports@latest
3841 go install golang.org/x/vuln/cmd/govulncheck@latest
3942 go install honnef.co/go/tools/cmd/staticcheck@latest
4043 go install mvdan.cc/gofumpt@latest
Original file line number Diff line number Diff line change 99 "net/url"
1010 "strings"
1111
12- "github.com/pushbits/cli/internal/handling"
1312 log "github.com/sirupsen/logrus"
13+
14+ "github.com/pushbits/cli/internal/handling"
1415)
1516
1617func buildURL (baseStr string , endpoint string ) * url.URL {
You can’t perform that action at this time.
0 commit comments