Skip to content

Commit

Permalink
ci: refresh golangci linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Jul 25, 2024
1 parent d886fcf commit 3af98a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ paths = [
'''init.sh'''
]
regexes = [
'''#nosec''',
'''//nosec'''
'''(EthSecp256k1)'''
]

[[rules]]
Expand Down
27 changes: 12 additions & 15 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,36 @@ linters:
- whitespace

issues:
exclude:
- composite
exclude-generated: strict
exclude-dirs: ['.git', '.github']
exclude-rules:
- path: _test\.go
linters:
- gosec
- linters:
- lll
source: "https://"
source: 'https://'
max-same-issues: 50

linters-settings:
lll:
line-length: 150
dogsled:
max-blank-identifiers: 3
golint:
min-confidence: 0
maligned:
suggest-new: true
misspell:
locale: US
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
gofumpt:
lang-version: "1.19"
gomodguard:
blocked:
versions: # List of blocked module version constraints
- https://github.com/etcd-io/etcd: # Blocked module with version constraint
version: ">= 3.4.10 || ~3.3.23" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
reason: "CVE-2020-15114; CVE-2020-15136; CVE-2020-15115" # Reason why the version constraint exists. (Optional)
- https://github.com/dgrijalva/jwt-go: # Blocked module with version constraint
version: ">= 4.0.0-preview1" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
reason: "CVE-2020-26160" # Reason why the version constraint exists. (Optional)
versions: # List of blocked module version constraints
- https://github.com/etcd-io/etcd: # Blocked module with version constraint
version: '>= 3.4.10 || ~3.3.23' # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
reason: 'CVE-2020-15114; CVE-2020-15136; CVE-2020-15115' # Reason why the version constraint exists. (Optional)
- https://github.com/dgrijalva/jwt-go: # Blocked module with version constraint
version: '>= 4.0.0-preview1' # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
reason: 'CVE-2020-26160' # Reason why the version constraint exists. (Optional)
1 change: 0 additions & 1 deletion crypto/hd/algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func EthSecp256k1Option() keyring.Option {
}

var (
//nosec
_ keyring.SignatureAlgo = EthSecp256k1

// EthSecp256k1 uses the Bitcoin secp256k1 ECDSA parameters.
Expand Down

0 comments on commit 3af98a6

Please sign in to comment.