11service :
22 # 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
44run :
55 # timeout for analysis, e.g. 30s, 5m, default is 1m
66 deadline : 20m
1010 # default value is empty list, but next dirs are always skipped independently
1111 # from this option's value:
1212 # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
13- skip-dirs :
14- - genfiles$
15- - vendor$
13+ # skip-dirs:
14+ # - genfiles$
15+ # - vendor$
1616
1717 # which files to skip: they will be analyzed, but issues from them
1818 # won't be reported. Default value is empty list, but there is
1919 # no need to include all autogenerated files, we confidently recognize
2020 # 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"
2424
2525linters :
2626 # please, do not use `enable-all`: it's deprecated and will be removed soon.
2727 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
2828 disable-all : true
2929 enable :
30- - revive
30+ # - deadcode
3131 - errcheck
32- - gocyclo
32+ # - gocyclo
3333 - gofmt
3434 - goimports
35- - gosec
35+ # - golint
36+ - revive
37+ # - gosec
3638 - gosimple
3739 - govet
40+ # - ineffassign
41+ # - interfacer
3842 - lll
39- - misspell
43+ # - misspell
4044 - staticcheck
45+ # - structcheck
4146 - typecheck
4247 - unconvert
4348 - unparam
4449 - unused
45-
50+ # - varcheck
4651 # don't enable:
47- # - deadcode
48- # - golint
49- # - ineffassign
50- # - interfacer
51- # - varcheck
52- # - structcheck
5352 # - gocritic
5453 # - bodyclose
5554 # - depguard
@@ -102,7 +101,7 @@ linters-settings:
102101 lll :
103102 # max line length, lines longer will be reported. Default is 120.
104103 # '\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
106105 # tab width in spaces. Default to 1.
107106 tab-width : 1
108107 unused :
@@ -186,6 +185,15 @@ linters-settings:
186185 # - unlabelStmt
187186 # - unnamedResult
188187 # - 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"
189197
190198issues :
191199 # List of regexps of issue texts to exclude, empty list by default.
@@ -195,6 +203,14 @@ issues:
195203 exclude :
196204 - composite literal uses unkeyed fields
197205
206+ exclude-dirs :
207+ - genfiles$
208+ - vendor$
209+
210+ exclude-files :
211+ - " .*\\ .pb\\ .go"
212+ - " .*\\ .gen\\ .go"
213+
198214 exclude-rules :
199215 # Exclude some linters from running on test files.
200216 - path : _test\.go$|^tests/|^samples/
0 commit comments