Skip to content

Commit

Permalink
chore: ammendments to linter configs
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Dec 16, 2024
1 parent a1327ec commit 95616c7
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ linters:
- ineffassign
- misspell
- nakedret
- revive
- staticcheck
- thelper
- typecheck
- stylecheck
- revive
- typecheck
- tenv
- thelper
- typecheck
- unconvert
# Prefer unparam over revive's unused param. It is more thorough in its checking.
- unparam
- unused
- misspell

issues:
exclude-rules:
Expand All @@ -37,6 +35,9 @@ issues:
- text: "Use of weak random number generator"
linters:
- gosec
- text: "G115: integer overflow conversion"
linters:
- gosec
- linters:
- staticcheck
text: "SA1019:" # silence errors on usage of deprecated funcs
Expand All @@ -56,6 +57,18 @@ linters-settings:
- prefix(github.com/cometbft/cometbft)
- prefix(github.com/cosmos/ibc-go)
custom-order: true
gocritic:
disabled-checks:
- appendAssign
gosec:
# Available rules: https://github.com/securego/gosec#available-rules
excludes:
- G101 # Potential hardcoded credentials
- G107 # Potential HTTP request made with variable url
- G115 # Integer overflow conversion (used everywhere with int64 -> uint64 block height)
- G404 # Use of weak random number generator (math/rand instead of crypto/rand)
exclude-generated: true
confidence: medium
revive:
enable-all-rules: true
# Do NOT whine about the following, full explanation found in:
Expand Down

0 comments on commit 95616c7

Please sign in to comment.