.golangci: fix config, update new-from-rev

This commit is contained in:
Oliver Gugger 2024-08-20 19:01:21 +02:00
parent e99e6662cf
commit 3ae6553eef
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -1,18 +1,8 @@
run: run:
# timeout for analysis go: "1.22.6"
deadline: 10m
# Skip autogenerated files for mobile and gRPC as well as copied code for # Abort after 10 minutes.
# internal use. timeout: 10m
skip-files:
- "mobile\\/.*generated\\.go"
- "\\.pb\\.go$"
- "\\.pb\\.gw\\.go$"
- "internal\\/musig2v040"
skip-dirs:
- channeldb/migration_01_to_11
- channeldb/migration/lnwire21
build-tags: build-tags:
- autopilotrpc - autopilotrpc
@ -57,7 +47,6 @@ linters-settings:
- G306 # Poor file permissions used when writing to a new file. - G306 # Poor file permissions used when writing to a new file.
staticcheck: staticcheck:
go: "1.22.6"
checks: ["-SA1019"] checks: ["-SA1019"]
lll: lll:
@ -217,7 +206,19 @@ linters:
issues: issues:
# Only show newly introduced problems. # Only show newly introduced problems.
new-from-rev: 8c66353e4c02329abdacb5a8df29998035ec2e24 new-from-rev: 77c7f776d5cbf9e147edc81d65ae5ba177a684e5
# Skip autogenerated files for mobile and gRPC as well as copied code for
# internal use.
skip-files:
- "mobile\\/.*generated\\.go"
- "\\.pb\\.go$"
- "\\.pb\\.gw\\.go$"
- "internal\\/musig2v040"
skip-dirs:
- channeldb/migration_01_to_11
- channeldb/migration/lnwire21
exclude-rules: exclude-rules:
# Exclude gosec from running for tests so that tests with weak randomness # Exclude gosec from running for tests so that tests with weak randomness