1
+ ---
1
2
# This file contains all available configuration options
2
3
# with their default values.
3
-
4
4
# options for analysis running
5
5
run :
6
6
# default concurrency is a available CPU number
31
31
# no need to include all autogenerated files, we confidently recognize
32
32
# autogenerated files. If it's not please let us know.
33
33
skip-files :
34
-
35
34
modules-download-mode : vendor
36
-
37
35
# output configuration options
38
36
output :
39
37
# colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number"
@@ -44,7 +42,6 @@ output:
44
42
45
43
# print linter name in the end of issue text, default is true
46
44
print-linter-name : true
47
-
48
45
linters :
49
46
enable :
50
47
- bodyclose
@@ -62,7 +59,6 @@ linters:
62
59
- staticcheck
63
60
- unconvert
64
61
- unparam
65
-
66
62
linters-settings :
67
63
govet :
68
64
disable-all : false
@@ -71,32 +67,24 @@ linters-settings:
71
67
# extremely noisy, also against common Go style in most cases
72
68
- shadow
73
69
gocritic :
74
- enabled-tags :
75
- - performance
76
- - opinionated
77
- - diagnostic
78
- disabled-checks :
79
- - paramTypeCombine
80
- - unnamedResult
81
- - unnecessaryDefer
82
- settings : # settings passed to gocritic
70
+ enabled-tags : [performance, opinionated, diagnostic]
71
+ disabled-checks : [paramTypeCombine, unnamedResult, unnecessaryDefer]
72
+ settings : # settings passed to gocritic
83
73
hugeParam :
84
74
sizeThreshold : 512
85
75
rangeValCopy :
86
76
sizeThreshold : 512
87
77
skipTestFuncs : true
88
-
89
78
issues :
90
79
# This turns off the default excludes - which was causing the linter
91
80
# to miss things like erroneous comments
92
81
exclude-use-default : false
93
- exclude :
94
- - Using the variable on range scope .* in function literal
82
+ exclude : [Using the variable on range scope .* in function literal]
95
83
exclude-rules :
96
84
# Skip fieldalignment checks on:
97
85
# - tests: memory footprint doesn't matter
98
86
# - cmd/: we assume these are one-off config entries
99
87
# - pkg/apis: Keep strong convention on TypeMeta/ObjectMeta/Spec/Status
100
- - path : ' (.+)_test\.go|^test/|^cmd/.*|^pkg/apis/.*'
88
+ - path : (.+)_test\.go|^test/|^cmd/.*|^pkg/apis/.*
101
89
# fieldalignment is in the `govet` linter, so exclude based on text instead of all of govet
102
90
text : ' ^fieldalignment: .*'
0 commit comments