1010 # build-tags:
1111 # - mytag
1212
13- # which dirs to skip: they won't be analyzed;
14- # can use regexp here: generated.*, regexp is applied on full path;
15- # default value is empty list, but next dirs are always skipped independently
16- # from this option's value:
17- # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
18- # skip-dirs:
19- skip-dirs-use-default : false
20-
2113 # which files to skip: they will be analyzed, but issues from them
2214 # won't be reported. Default value is empty list, but there is
2315 # no need to include all autogenerated files, we confidently recognize
3022# output configuration options
3123output :
3224 # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number"
33- format : colored-line-number
25+ formats : colored-line-number
3426
3527 # print lines of code with issue, default is true
3628 print-issued-lines : true
@@ -51,10 +43,7 @@ linters-settings:
5143 check-blank : false
5244 govet :
5345 # report about shadowed variables
54- check-shadowing : true
55- golint :
56- # minimal confidence for issues, default is 0.8
57- min-confidence : 0.8
46+ shadow : true
5847 gofmt :
5948 # simplify code: gofmt with `-s` option, true by default
6049 simplify : true
@@ -222,22 +211,28 @@ linters:
222211 - cyclop
223212 - depguard
224213 - dupl
214+ - err113
225215 - exhaustive
226- - exhaustivestruct
227216 - exhaustruct
217+ - fatcontext
228218 - forbidigo
229219 - gochecknoglobals
230220 - gocognit
221+ - gocritic
231222 - godot
232- - goerr113
233- - golint
223+ - gomnd
224+ - gosec
234225 - interfacebloat
226+ - intrange
235227 - ireturn
236228 - maintidx
229+ - mnd
237230 - nonamedreturns
238231 - paralleltest
239- - structcheck
232+ - perfsprint
233+ - predeclared
240234 - testableexamples
235+ - testifylint
241236 - testpackage
242237 - thelper
243238 - varnamelen
@@ -267,6 +262,11 @@ issues:
267262 # Default value for this option is true.
268263 exclude-use-default : true
269264
265+ # Enables exclude of directories:
266+ # - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
267+ # Default: true
268+ exclude-dirs-use-default : false
269+
270270 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
271271 max-same-issues : 0
272272
@@ -302,7 +302,6 @@ issues:
302302 text : " ydb.Connection is deprecated"
303303 - path : examples
304304 linters :
305- - gomnd
306305 - funlen
307306 - path : tests
308307 linters :
0 commit comments