11linters :
2+ enable-all : false
3+ disable-all : true
4+ fast : false
25 enable :
36 - bidichk
4- # - deadcode # deprecated - https://github.com/golangci/golangci-lint/issues/1841
57 - depguard
68 - dupl
79 - errcheck
810 - forbidigo
911 - gocritic
10- # - gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
1112 - gofmt
1213 - gofumpt
1314 - gosimple
@@ -17,20 +18,18 @@ linters:
1718 - nolintlint
1819 - revive
1920 - staticcheck
20- # - structcheck # deprecated - https://github.com/golangci/golangci-lint/issues/1841
2121 - stylecheck
2222 - typecheck
2323 - unconvert
2424 - unused
25- # - varcheck # deprecated - https://github.com/golangci/golangci-lint/issues/1841
2625 - wastedassign
27- enable-all : false
28- disable-all : true
29- fast : false
3026
3127run :
3228 timeout : 10m
3329
30+ output :
31+ sort-results : true
32+
3433linters-settings :
3534 stylecheck :
3635 checks : ["all", "-ST1005", "-ST1003"]
@@ -47,27 +46,37 @@ linters-settings:
4746 errorCode : 1
4847 warningCode : 1
4948 rules :
49+ - name : atomic
50+ - name : bare-return
5051 - name : blank-imports
52+ - name : constant-logical-expr
5153 - name : context-as-argument
5254 - name : context-keys-type
5355 - name : dot-imports
56+ - name : duplicated-imports
57+ - name : empty-lines
58+ - name : error-naming
5459 - name : error-return
5560 - name : error-strings
56- - name : error-naming
61+ - name : errorf
5762 - name : exported
63+ - name : identical-branches
5864 - name : if-return
5965 - name : increment-decrement
60- - name : var-naming
61- - name : var-declaration
66+ - name : indent-error-flow
67+ - name : modifies-value-receiver
6268 - name : package-comments
6369 - name : range
6470 - name : receiver-naming
71+ - name : redefines-builtin-id
72+ - name : string-of-int
73+ - name : superfluous-else
6574 - name : time-naming
75+ - name : unconditional-recursion
6676 - name : unexported-return
67- - name : indent-error-flow
68- - name : errorf
69- - name : duplicated-imports
70- - name : modifies-value-receiver
77+ - name : unreachable-code
78+ - name : var-declaration
79+ - name : var-naming
7180 gofumpt :
7281 extra-rules : true
7382 depguard :
@@ -93,8 +102,8 @@ issues:
93102 max-issues-per-linter : 0
94103 max-same-issues : 0
95104 exclude-dirs : [node_modules, public, web_src]
105+ exclude-case-sensitive : true
96106 exclude-rules :
97- # Exclude some linters from running on tests files.
98107 - path : _test\.go
99108 linters :
100109 - gocyclo
@@ -112,19 +121,19 @@ issues:
112121 - path : cmd
113122 linters :
114123 - forbidigo
115- - linters :
124+ - text : " webhook"
125+ linters :
116126 - dupl
117- text : " webhook "
118- - linters :
127+ - text : " `ID' should not be capitalized "
128+ linters :
119129 - gocritic
120- text : " `ID' should not be capitalized "
121- - linters :
130+ - text : " swagger "
131+ linters :
122132 - unused
123133 - deadcode
124- text : " swagger "
125- - linters :
134+ - text : " argument x is overwritten before first use "
135+ linters :
126136 - staticcheck
127- text : " argument x is overwritten before first use"
128137 - text : " commentFormatting: put a space between `//` and comment text"
129138 linters :
130139 - gocritic
0 commit comments