File tree Expand file tree Collapse file tree 3 files changed +15
-24
lines changed Expand file tree Collapse file tree 3 files changed +15
-24
lines changed Original file line number Diff line number Diff line change
1
+ linters :
2
+ # https://golangci-lint.run/usage/linters/#enabled-by-default-linters
3
+ enable :
4
+ # default linters
5
+ - errcheck
6
+ - gosimple
7
+ - govet
8
+ - ineffassign
9
+ - staticcheck
10
+ - unused
11
+ # optional linters
12
+ - goimports
13
+
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ manifests:
59
59
# Run go fmt against code
60
60
.PHONY : fmt
61
61
fmt :
62
- hack/goimports.sh
62
+ go fmt ./...
63
63
64
64
# Run go vet against code
65
65
.PHONY : vet
69
69
# Run golangci-lint against code
70
70
.PHONY : lint
71
71
lint :
72
- ( GOLANGCI_LINT_CACHE=$( PROJECT_DIR) /.cache $( GOLANGCI_LINT) run --timeout 10m )
72
+ ( GOLANGCI_LINT_CACHE=$( PROJECT_DIR) /.cache $( GOLANGCI_LINT) run --timeout 10m -v )
73
73
74
74
# Run go mod
75
75
.PHONY : vendor
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments