Skip to content

Commit 3ae6553

Browse files
committed
.golangci: fix config, update new-from-rev
1 parent e99e666 commit 3ae6553

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.golangci.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
run:
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.6"
6150
checks: ["-SA1019"]
6251

6352
lll:
@@ -217,7 +206,19 @@ linters:
217206

218207
issues:
219208
# Only show newly introduced problems.
220-
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
221222

222223
exclude-rules:
223224
# Exclude gosec from running for tests so that tests with weak randomness

0 commit comments

Comments
 (0)