1
1
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2
2
#
3
- # Generated on 2024-02-15T12:59:24Z by kres latest .
3
+ # Generated on 2024-07-08T16:37:28Z by kres 8c8b007 .
4
4
5
5
# options for analysis running
6
6
run :
7
7
timeout : 10m
8
8
issues-exit-code : 1
9
9
tests : true
10
- build-tags : []
11
- skip-dirs : []
12
- skip-dirs-use-default : true
13
- skip-files : []
10
+ build-tags : [ ]
14
11
modules-download-mode : readonly
15
12
16
13
# output configuration options
17
14
output :
18
- format : colored-line-number
15
+ formats :
16
+ - format : colored-line-number
17
+ path : stdout
19
18
print-issued-lines : true
20
19
print-linter-name : true
21
20
uniq-by-line : true
@@ -32,54 +31,35 @@ linters-settings:
32
31
check-blank : true
33
32
exhaustive :
34
33
default-signifies-exhaustive : false
35
- funlen :
36
- lines : 60
37
- statements : 40
38
34
gci :
39
- local-prefixes : github.com/siderolabs/go-kubernetes/
35
+ sections :
36
+ - standard # Standard section: captures all standard packages.
37
+ - default # Default section: contains all imports that could not be matched to another section type.
38
+ - localmodule # Imports from the same module.
40
39
gocognit :
41
40
min-complexity : 30
42
- ireturn :
43
- allow :
44
- - anon
45
- - error
46
- - empty
47
- - stdlib
48
- - github.com\/talos-systems\/kres\/internal\/dag.Node
49
41
nestif :
50
42
min-complexity : 5
51
43
goconst :
52
44
min-len : 3
53
45
min-occurrences : 3
54
46
gocritic :
55
- disabled-checks : []
47
+ disabled-checks : [ ]
56
48
gocyclo :
57
49
min-complexity : 20
58
50
godot :
59
- check-all : false
60
- godox :
61
- keywords : # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting
62
- - NOTE
63
- - OPTIMIZE # marks code that should be optimized before merging
64
- - HACK # marks hack-arounds that should be removed before merging
51
+ scope : declarations
65
52
gofmt :
66
53
simplify : true
67
- goimports :
68
- local-prefixes : github.com/siderolabs/go-kubernetes/
69
- golint :
70
- min-confidence : 0.8
71
- gomnd :
72
- settings : {}
73
- gomodguard : {}
54
+ gomodguard : { }
74
55
govet :
75
- check-shadowing : true
76
56
enable-all : true
77
57
lll :
78
58
line-length : 200
79
59
tab-width : 4
80
60
misspell :
81
61
locale : US
82
- ignore-words : []
62
+ ignore-words : [ ]
83
63
nakedret :
84
64
max-func-lines : 30
85
65
prealloc :
@@ -88,16 +68,15 @@ linters-settings:
88
68
for-loops : false # Report preallocation suggestions on for loops, false by default
89
69
nolintlint :
90
70
allow-unused : false
91
- allow-leading-space : false
92
- allow-no-explanation : []
71
+ allow-no-explanation : [ ]
93
72
require-explanation : false
94
73
require-specific : true
95
- rowserrcheck : {}
96
- testpackage : {}
74
+ rowserrcheck : { }
75
+ testpackage : { }
97
76
unparam :
98
77
check-exported : false
99
78
unused :
100
- check-exported : false
79
+ local-variables-are-used : false
101
80
whitespace :
102
81
multi-if : false # Enforces newlines (or comments) after every multi-line if statement
103
82
multi-func : false # Enforces newlines (or comments) after every multi-line function signature
@@ -113,60 +92,53 @@ linters-settings:
113
92
gofumpt :
114
93
extra-rules : false
115
94
cyclop :
116
- # the maximal code complexity to report
117
- max-complexity : 20
118
- # depguard:
119
- # Main:
120
- # deny:
121
- # - github.com/OpenPeeDeeP/depguard # this is just an example
95
+ # the maximal code complexity to report
96
+ max-complexity : 20
97
+ depguard :
98
+ rules :
99
+ prevent_unmaintained_packages :
100
+ list-mode : lax # allow unless explicitly denied
101
+ files :
102
+ - $all
103
+ deny :
104
+ - pkg : io/ioutil
105
+ desc : " replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
122
106
123
107
linters :
124
108
enable-all : true
125
109
disable-all : false
126
110
fast : false
127
111
disable :
128
112
- exhaustruct
129
- - exhaustivestruct
113
+ - err113
130
114
- forbidigo
131
115
- funlen
132
- - gas
133
116
- gochecknoglobals
134
117
- gochecknoinits
135
118
- godox
136
- - goerr113
137
119
- gomnd
138
120
- gomoddirectives
121
+ - gosec
122
+ - inamedparam
139
123
- ireturn
124
+ - mnd
140
125
- nestif
141
126
- nonamedreturns
142
- - nosnakecase
143
127
- paralleltest
128
+ - tagalign
144
129
- tagliatelle
145
130
- thelper
146
- - typecheck
147
131
- varnamelen
148
132
- wrapcheck
149
- - depguard # Disabled because starting with golangci-lint 1.53.0 it doesn't allow denylist alone anymore
150
- - tagalign
151
- - inamedparam
152
133
- testifylint # complains about our assert recorder and has a number of false positives for assert.Greater(t, thing, 1)
153
134
- protogetter # complains about us using Value field on typed spec, instead of GetValue which has a different signature
154
135
- perfsprint # complains about us using fmt.Sprintf in non-performance critical code, updating just kres took too long
155
- # abandoned linters for which golangci shows the warning that the repo is archived by the owner
156
- - interfacer
157
- - maligned
158
- - golint
159
- - scopelint
160
- - varcheck
161
- - deadcode
162
- - structcheck
163
- - ifshort
164
- # disabled as it seems to be broken - goes into imported libraries and reports issues there
165
- - musttag
136
+ - goimports # same as gci
137
+ - musttag # seems to be broken - goes into imported libraries and reports issues there
166
138
167
139
issues :
168
- exclude : []
169
- exclude-rules : []
140
+ exclude : [ ]
141
+ exclude-rules : [ ]
170
142
exclude-use-default : false
171
143
exclude-case-sensitive : false
172
144
max-issues-per-linter : 10
0 commit comments