File tree Expand file tree Collapse file tree 1 file changed +12
-23
lines changed Expand file tree Collapse file tree 1 file changed +12
-23
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ linters:
1919 - gosmopolitan
2020 - inamedparam
2121 - interfacebloat
22+ # Seems unstable. It will sometimes fire and other times not.
23+ - ireturn
24+ - lll
2225 - mnd
2326 - nlreturn
27+ - noinlineerr
2428 - nonamedreturns
2529 - paralleltest
2630 # Seems to conflict with golines or one of the formatters.
@@ -32,6 +36,9 @@ linters:
3236 - wsl
3337 - wsl_v5
3438 settings :
39+ errcheck :
40+ exclude-functions :
41+ - (*github.com/oschwald/geoip2-golang/v2.Reader).Close
3542 errorlint :
3643 errorf : true
3744 asserts : true
@@ -63,6 +70,9 @@ linters:
6370 gosec :
6471 excludes :
6572 - G115
73+ # Potential file inclusion via variable - we only open files asked by
74+ # the user of the API.
75+ - G304
6676 govet :
6777 disable :
6878 - shadow
@@ -138,22 +148,7 @@ linters:
138148 unparam :
139149 check-exported : true
140150 exclusions :
141- generated : lax
142- presets :
143- - comments
144- - common-false-positives
145- - legacy
146- - std-error-handling
147- rules :
148- - linters :
149- - govet
150- - revive
151- path : _test.go
152- text : ' fieldalignment:'
153- paths :
154- - third_party$
155- - builtin$
156- - examples$
151+ warn-unused : true
157152formatters :
158153 enable :
159154 - gci
@@ -166,12 +161,6 @@ formatters:
166161 sections :
167162 - standard
168163 - default
169- - prefix(github.com/oschwald/geoip2 -golang)
164+ - prefix(github.com/oschwald/maxminddb -golang)
170165 gofumpt :
171166 extra-rules : true
172- exclusions :
173- generated : lax
174- paths :
175- - third_party$
176- - builtin$
177- - examples$
You can’t perform that action at this time.
0 commit comments