@@ -74,14 +74,6 @@ linters-settings:
7474 min-len : 3
7575 # minimal occurrences count to trigger, 3 by default
7676 min-occurrences : 3
77- depguard :
78- list-type : blacklist
79- include-go-root : false
80- packages :
81- - github.com/sirupsen/logrus
82- packages-with-error-messages :
83- # specify an error message to output when a blacklisted package is used
84- github.com/sirupsen/logrus : " logging is allowed only by logutils.Log"
8577 misspell :
8678 # Correct spellings using locale preferences for US or UK.
8779 # Default is to use a neutral variety of English.
@@ -95,12 +87,6 @@ linters-settings:
9587 line-length : 120
9688 # tab width in spaces. Default to 1.
9789 tab-width : 1
98- unused :
99- # treat code as a program (not a library) and report unused exported identifiers; default is false.
100- # XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
101- # if it's called for subdir of a project it can't find funcs usages. All text editor integrations
102- # with golangci-lint call it on a directory with the changed file.
103- check-exported : false
10490 unparam :
10591 # Inspect exported functions, default is false. Set to true if no external program/library imports your code.
10692 # XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
@@ -165,7 +151,7 @@ linters:
165151 enable :
166152 - asciicheck
167153 - bodyclose
168- - deadcode
154+ # - deadcode -> unused
169155 - depguard
170156 - dogsled
171157 - dupl
@@ -208,13 +194,13 @@ linters:
208194 # - scopelint --> exportloopref
209195 - exportloopref
210196 - staticcheck
211- - structcheck
197+ # - structcheck -> unused
212198 - stylecheck
213199 - typecheck
214200 - unconvert
215201 - unparam
216202 - unused
217- - varcheck
203+ # - varcheck -> unused
218204 - whitespace
219205 # - wrapcheck
220206 - wsl
0 commit comments