File tree 2 files changed +10
-48
lines changed
2 files changed +10
-48
lines changed Original file line number Diff line number Diff line change 1
1
run :
2
- skip-dirs :
3
- - (^|/)bin($|/)
4
- - (^|/)examples($|/)
5
- - (^|/)schemas($|/)
6
- - (^|/)test-harness($|/)
7
- linters :
8
- enable :
9
- - asciicheck
10
- - asasalint
11
- - bidichk
12
- - bodyclose
13
- - contextcheck
14
- - dogsled
15
- - dupl
16
- - dupword
17
- - durationcheck
18
- - errchkjson
19
- - exhaustive
20
- - funlen
21
- - gci
22
- - goconst
23
- - gocritic
24
- - gocyclo
25
- - interfacebloat
26
- - gosec
27
- - lll
28
- - misspell
29
- - nakedret
30
- - nilerr
31
- - nilnil
32
- - noctx
33
- - nosprintfhostport
34
- - prealloc
35
- - promlinter
36
- - revive
37
- - rowserrcheck
38
- - exportloopref
39
- - stylecheck
40
- - unconvert
41
- - unparam
42
- - whitespace
43
- - wrapcheck
44
- - gofumpt
45
- - tenv
2
+ timeout : 3m
46
3
linters-settings :
47
4
funlen :
48
5
statements : 50
@@ -65,3 +22,8 @@ issues:
65
22
- gocyclo
66
23
- dupl
67
24
- staticcheck
25
+ exclude-dirs :
26
+ - (^|/)bin($|/)
27
+ - (^|/)examples($|/)
28
+ - (^|/)schemas($|/)
29
+ - (^|/)test-harness($|/)
Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ uninstall:
66
66
rm /etc/systemd/system/flagd.service
67
67
rm -f $(DESTDIR )$(PREFIX ) /bin/flagd
68
68
lint :
69
- go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
70
- $(foreach module, $(ALL_GO_MOD_DIRS ) , ${GOPATH}/bin/golangci-lint run --deadline=5m --timeout=5m $(module ) /... || exit ;)
69
+ go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
70
+ $(foreach module, $(ALL_GO_MOD_DIRS ) , ${GOPATH}/bin/golangci-lint run $(module ) /...;)
71
71
lint-fix :
72
- go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
73
- $(foreach module, $(ALL_GO_MOD_DIRS ) , ${GOPATH}/bin/golangci-lint run --fix --deadline=5m --timeout=5m $(module ) /... || exit ;)
72
+ go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
73
+ $(foreach module, $(ALL_GO_MOD_DIRS ) , ${GOPATH}/bin/golangci-lint run --fix $(module ) /...;)
74
74
install-mockgen :
75
75
go install go.uber.org/mock/
[email protected]
76
76
mockgen : install-mockgen
You can’t perform that action at this time.
0 commit comments