11run :
2- # timeout for analysis
3- deadline : 10m
2+ go : " 1.22.6"
43
5- # Skip autogenerated files for mobile and gRPC as well as copied code for
6- # internal use.
7- skip-files :
8- - " mobile\\ /.*generated\\ .go"
9- - " \\ .pb\\ .go$"
10- - " \\ .pb\\ .gw\\ .go$"
11- - " internal\\ /musig2v040"
12-
13- skip-dirs :
14- - channeldb/migration_01_to_11
15- - channeldb/migration/lnwire21
4+ # Abort after 10 minutes.
5+ timeout : 10m
166
177 build-tags :
188 - autopilotrpc
@@ -57,7 +47,6 @@ linters-settings:
5747 - G306 # Poor file permissions used when writing to a new file.
5848
5949 staticcheck :
60- go : " 1.22.5"
6150 checks : ["-SA1019"]
6251
6352 lll :
@@ -131,25 +120,15 @@ linters:
131120 - gochecknoinits
132121
133122 # Deprecated linters. See https://golangci-lint.run/usage/linters/.
134- - interfacer
135- - golint
136- - maligned
137- - scopelint
138- - exhaustivestruct
139123 - bodyclose
140124 - contextcheck
141125 - nilerr
142126 - noctx
143127 - rowserrcheck
144128 - sqlclosecheck
145- - structcheck
146129 - tparallel
147130 - unparam
148131 - wastedassign
149- - ifshort
150- - varcheck
151- - deadcode
152- - nosnakecase
153132
154133
155134 # Disable gofumpt as it has weird behavior regarding formatting multiple
@@ -189,7 +168,7 @@ linters:
189168 - wrapcheck
190169
191170 # Allow dynamic errors.
192- - goerr113
171+ - err113
193172
194173 # We use ErrXXX instead.
195174 - errname
@@ -205,15 +184,41 @@ linters:
205184 # The linter is too aggressive and doesn't add much value since reviewers
206185 # will also catch magic numbers that make sense to extract.
207186 - gomnd
187+ - mnd
208188
209- # Some of the tests cannot be parallelized. On the other hand, we don't
210- # gain much performance with this check so we disable it for now until
211- # unit tests become our CI bottleneck.
189+ # Some of the tests cannot be parallelized. On the other hand, we don't
190+ # gain much performance with this check so we disable it for now until
191+ # unit tests become our CI bottleneck.
212192 - paralleltest
213193
194+ # New linters that we haven't had time to address yet.
195+ - testifylint
196+ - perfsprint
197+ - inamedparam
198+ - copyloopvar
199+ - tagalign
200+ - protogetter
201+ - revive
202+ - depguard
203+ - gosmopolitan
204+ - intrange
205+
206+
214207issues :
215208 # Only show newly introduced problems.
216- new-from-rev : 8c66353e4c02329abdacb5a8df29998035ec2e24
209+ new-from-rev : 77c7f776d5cbf9e147edc81d65ae5ba177a684e5
210+
211+ # Skip autogenerated files for mobile and gRPC as well as copied code for
212+ # internal use.
213+ skip-files :
214+ - " mobile\\ /.*generated\\ .go"
215+ - " \\ .pb\\ .go$"
216+ - " \\ .pb\\ .gw\\ .go$"
217+ - " internal\\ /musig2v040"
218+
219+ skip-dirs :
220+ - channeldb/migration_01_to_11
221+ - channeldb/migration/lnwire21
217222
218223 exclude-rules :
219224 # Exclude gosec from running for tests so that tests with weak randomness
0 commit comments