laconicd-deprecated/.golangci.yml

77 lines
1.9 KiB
YAML
Raw Permalink Normal View History

run:
tests: false
2021-08-26 15:45:45 +00:00
# timeout for analysis, e.g. 30s, 5m, default is 1m
# timeout: 5m
linters:
enable:
- bodyclose
- deadcode
- depguard
- dogsled
2021-08-26 15:45:45 +00:00
- dupl
- errcheck
- goconst
- gocritic
2022-09-06 16:47:11 +00:00
- gofumpt
- revive
- gosec
- gosimple
- govet
- ineffassign
2022-09-06 16:47:11 +00:00
- lll
- misspell
- nakedret
- prealloc
- exportloopref
- staticcheck
- stylecheck
2022-09-06 16:47:11 +00:00
- typecheck
- unconvert
- unparam
2021-08-26 15:45:45 +00:00
- unused
- varcheck
- nolintlint
- asciicheck
- exportloopref
- gofumpt
- gomodguard
2022-09-06 16:47:11 +00:00
- whitespace
issues:
exclude-rules:
2021-08-26 15:45:45 +00:00
- path: _test\.go
linters:
- gosec
2021-08-26 15:45:45 +00:00
- linters:
- lll
source: "https://"
max-same-issues: 50
linters-settings:
2022-09-06 16:47:11 +00:00
lll:
line-length: 150
dogsled:
max-blank-identifiers: 3
2021-08-26 15:45:45 +00:00
golint:
min-confidence: 0
maligned:
suggest-new: true
2021-08-26 15:45:45 +00:00
misspell:
locale: US
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
gofumpt:
2022-09-06 16:47:11 +00:00
lang-version: "1.18"
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
2022-09-06 16:47:11 +00:00
reason: "CVE-2020-26160" # Reason why the version constraint exists. (Optional)