1
1
service :
2
2
# When updating this, also update the version stored in docker/build-tools/Dockerfile in the multicloudlab/tools repo.
3
- golangci-lint-version : 1.51 .x # use the fixed version to not introduce new linters unexpectedly
3
+ golangci-lint-version : 1.60 .x # use the fixed version to not introduce new linters unexpectedly
4
4
run :
5
5
# timeout for analysis, e.g. 30s, 5m, default is 1m
6
6
deadline : 20m
10
10
# default value is empty list, but next dirs are always skipped independently
11
11
# from this option's value:
12
12
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
13
- skip-dirs :
14
- - genfiles$
15
- - vendor$
13
+ # skip-dirs:
14
+ # - genfiles$
15
+ # - vendor$
16
16
17
17
# which files to skip: they will be analyzed, but issues from them
18
18
# won't be reported. Default value is empty list, but there is
19
19
# no need to include all autogenerated files, we confidently recognize
20
20
# autogenerated files. If it's not please let us know.
21
- skip-files :
22
- - " .*\\ .pb\\ .go"
23
- - " .*\\ .gen\\ .go"
21
+ # skip-files:
22
+ # - ".*\\.pb\\.go"
23
+ # - ".*\\.gen\\.go"
24
24
25
25
linters :
26
26
# please, do not use `enable-all`: it's deprecated and will be removed soon.
27
27
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
28
28
disable-all : true
29
29
enable :
30
- - revive
30
+ # - deadcode
31
31
- errcheck
32
- - gocyclo
32
+ # - gocyclo
33
33
- gofmt
34
34
- goimports
35
- - gosec
35
+ # - golint
36
+ - revive
37
+ # - gosec
36
38
- gosimple
37
39
- govet
40
+ # - ineffassign
41
+ # - interfacer
38
42
- lll
39
- - misspell
43
+ # - misspell
40
44
- staticcheck
45
+ # - structcheck
41
46
- typecheck
42
47
- unconvert
43
48
- unparam
44
49
- unused
45
-
50
+ # - varcheck
46
51
# don't enable:
47
- # - deadcode
48
- # - golint
49
- # - ineffassign
50
- # - interfacer
51
- # - varcheck
52
- # - structcheck
53
52
# - gocritic
54
53
# - bodyclose
55
54
# - depguard
@@ -102,7 +101,7 @@ linters-settings:
102
101
lll :
103
102
# max line length, lines longer will be reported. Default is 120.
104
103
# '\t' is counted as 1 character by default, and can be changed with the tab-width option
105
- line-length : 300
104
+ line-length : 400
106
105
# tab width in spaces. Default to 1.
107
106
tab-width : 1
108
107
unused :
@@ -186,6 +185,15 @@ linters-settings:
186
185
# - unlabelStmt
187
186
# - unnamedResult
188
187
# - wrapperFunc
188
+
189
+ revive :
190
+ rules :
191
+ - name : dot-imports
192
+ arguments :
193
+ - allowedPackages :
194
+ - " github.com/onsi/ginkgo"
195
+ - " github.com/onsi/ginkgo/v2"
196
+ - " github.com/onsi/gomega"
189
197
190
198
issues :
191
199
# List of regexps of issue texts to exclude, empty list by default.
@@ -195,6 +203,14 @@ issues:
195
203
exclude :
196
204
- composite literal uses unkeyed fields
197
205
206
+ exclude-dirs :
207
+ - genfiles$
208
+ - vendor$
209
+
210
+ exclude-files :
211
+ - " .*\\ .pb\\ .go"
212
+ - " .*\\ .gen\\ .go"
213
+
198
214
exclude-rules :
199
215
# Exclude some linters from running on test files.
200
216
- path : _test\.go$|^tests/|^samples/
0 commit comments