Skip to content

Commit

Permalink
golangci: fix timeout and deprecated flags
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Aug 20, 2024
1 parent 3283095 commit 7dee8b4
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
run:
# timeout for analysis
deadline: 10m
go: "1.22.6"

# 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
# timeout for analysis
timeout: 10m

build-tags:
- autopilotrpc
Expand Down Expand Up @@ -57,7 +47,6 @@ linters-settings:
- G306 # Poor file permissions used when writing to a new file.

staticcheck:
go: "1.22.6"
checks: ["-SA1019"]

lll:
Expand Down Expand Up @@ -219,6 +208,18 @@ issues:
# Only show newly introduced problems.
new-from-rev: 8c66353e4c02329abdacb5a8df29998035ec2e24

# Skip autogenerated files for mobile and gRPC as well as copied code for
# internal use.
exclude-files:
- "mobile\\/.*generated\\.go"
- "\\.pb\\.go$"
- "\\.pb\\.gw\\.go$"
- "internal\\/musig2v040"

exclude-dirs:
- channeldb/migration_01_to_11
- channeldb/migration/lnwire21

exclude-rules:
# Exclude gosec from running for tests so that tests with weak randomness
# (math/rand) will pass the linter.
Expand Down

0 comments on commit 7dee8b4

Please sign in to comment.