3535# output configuration options
3636output :
3737 # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number"
38- format : colored-line-number
38+ formats :
39+ - format : colored-line-number
3940
4041 print-issued-lines : true
4142
@@ -61,13 +62,6 @@ linters-settings:
6162 # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
6263 # default is false: such cases aren't reported by default.
6364 check-blank : false
64- govet :
65- # report about shadowed variables
66- shadow : true
67- fieldalignment : true
68- golint :
69- # minimal confidence for issues, default is 0.8
70- min-confidence : 0.8
7165 gofmt :
7266 # simplify code: gofmt with `-s` option, true by default
7367 simplify : true
@@ -85,9 +79,6 @@ linters-settings:
8579 - G101
8680 - G115
8781 - G601 # no longer actual since 1.22
88- fieldalignment :
89- # print struct with more effective memory layout or not, false by default
90- suggest-new : true
9182 misspell :
9283 # Correct spellings using locale preferences for US or UK.
9384 # Default is to use a neutral variety of English.
@@ -118,17 +109,7 @@ linters-settings:
118109 - name : empty-block
119110 - name : superfluous-else
120111 - name : unreachable-code
121- unused :
122- # treat code as a program (not a library) and report unused exported identifiers; default is false.
123- # XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
124- # if it's called for subdir of a project it can't find funcs usages. All text editor integrations
125- # with golangci-lint call it on a directory with the changed file.
126- check-exported : false
127112 unparam :
128- # call graph construction algorithm (cha, rta). In general, use cha for libraries,
129- # and rta for programs with main packages. Default is cha.
130- algo : cha
131-
132113 # Inspect exported functions, default is false. Set to true if no external program/library imports your code.
133114 # XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
134115 # if it's called for subdir of a project it can't find external interfaces. All text editor integrations
@@ -192,9 +173,6 @@ issues:
192173 # Default value for this option is true.
193174 exclude-use-default : true
194175
195- # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
196- max-per-linter : 0
197-
198176 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
199177 max-same-issues : 0
200178
0 commit comments