11run :
22  timeout : 10m 
33
4-   skip-files :
5-   - " zz_generated\\ ..+\\ .go$" 
6- 
74output :
85  #  colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
9-   format : colored-line-number 
6+   formats :
7+     - format : colored-line-number 
108
119linters-settings :
1210  errcheck :
@@ -18,15 +16,6 @@ linters-settings:
1816    #  default is false: such cases aren't reported by default.
1917    check-blank : false 
2018
21-     #  [deprecated] comma-separated list of pairs of the form pkg:regex
22-     #  the regex is used to ignore names within pkg. (default "fmt:.*").
23-     #  see https://github.com/kisielk/errcheck#the-deprecated-method for details
24-     ignore : fmt:.*,io/ioutil:^Read.* 
25- 
26-   govet :
27-     #  report about shadowed variables
28-     check-shadowing : false 
29- 
3019  gofmt :
3120    #  simplify code: gofmt with `-s` option, true by default
3221    simplify : true 
@@ -46,10 +35,6 @@ linters-settings:
4635    #  minimal code complexity to report, 30 by default (but we recommend 10-20)
4736    min-complexity : 10 
4837
49-   maligned :
50-     #  print struct with more effective memory layout or not, false by default
51-     suggest-new : true 
52- 
5338  dupl :
5439    #  tokens count to trigger issue, 150 by default
5540    threshold : 100 
@@ -64,13 +49,6 @@ linters-settings:
6449    #  tab width in spaces. Default to 1.
6550    tab-width : 1 
6651
67-   unused :
68-     #  treat code as a program (not a library) and report unused exported identifiers; default is false.
69-     #  XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
70-     #  if it's called for subdir of a project it can't find funcs usages. All text editor integrations
71-     #  with golangci-lint call it on a directory with the changed file.
72-     check-exported : false 
73- 
7452  unparam :
7553    #  Inspect exported functions, default is false. Set to true if no external program/library imports your code.
7654    #  XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
@@ -111,7 +89,6 @@ linters-settings:
11189
11290linters :
11391  enable :
114-     - megacheck 
11592    - govet 
11693    - gocyclo 
11794    - gocritic 
@@ -141,6 +118,8 @@ linters:
141118
142119
143120issues :
121+   exclude-files :
122+     - " zz_generated\\ ..+\\ .go$" 
144123  #  Excluding configuration per-path and per-linter
145124  exclude-rules :
146125    #  Exclude some linters from running on tests files.
@@ -210,7 +189,7 @@ issues:
210189  new : false 
211190
212191  #  Maximum issues count per one linter. Set to 0 to disable. Default is 50.
213-   max-per-linter : 0 
192+   max-issues- per-linter : 0 
214193
215194  #  Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
216195  max-same-issues : 0 
0 commit comments