2020-06-26 22:26:55 +00:00
|
|
|
run:
|
|
|
|
tests: false
|
2021-08-26 15:45:45 +00:00
|
|
|
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
|
|
|
# timeout: 5m
|
2019-11-01 15:26:53 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
2022-06-24 16:16:19 +00:00
|
|
|
# - bodyclose
|
2020-01-07 20:56:49 +00:00
|
|
|
- deadcode
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
2021-08-26 15:45:45 +00:00
|
|
|
- dupl
|
2020-01-07 20:56:49 +00:00
|
|
|
- errcheck
|
|
|
|
- goconst
|
2020-03-16 22:53:24 +00:00
|
|
|
- gocritic
|
2019-11-01 15:26:53 +00:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
2021-11-14 13:34:10 +00:00
|
|
|
- revive
|
2020-01-07 20:56:49 +00:00
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
2021-08-26 15:45:45 +00:00
|
|
|
# - lll TODO: enable
|
2020-01-07 20:56:49 +00:00
|
|
|
- misspell
|
2020-03-16 22:53:24 +00:00
|
|
|
- nakedret
|
|
|
|
- prealloc
|
2021-11-14 13:34:10 +00:00
|
|
|
- exportloopref
|
2020-01-07 20:56:49 +00:00
|
|
|
- staticcheck
|
2022-06-24 16:16:19 +00:00
|
|
|
# - structcheck
|
2020-01-07 20:56:49 +00:00
|
|
|
- stylecheck
|
2021-12-13 23:51:36 +00:00
|
|
|
# - typecheck #TODO: enable
|
2020-01-07 20:56:49 +00:00
|
|
|
- unconvert
|
2022-06-24 16:16:19 +00:00
|
|
|
# - unparam
|
2021-08-26 15:45:45 +00:00
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
- nolintlint
|
|
|
|
- asciicheck
|
2021-09-05 11:03:06 +00:00
|
|
|
# - exhaustive
|
|
|
|
- exportloopref
|
|
|
|
- gofumpt
|
|
|
|
- gomodguard
|
|
|
|
# - nestif
|
|
|
|
# - nlreturn
|
2022-06-24 16:16:19 +00:00
|
|
|
# - noctx
|
|
|
|
# - rowserrcheck
|
2021-08-26 15:45:45 +00:00
|
|
|
# - whitespace
|
2020-11-24 15:43:08 +00:00
|
|
|
# - wsl
|
2019-11-01 15:26:53 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2021-08-26 15:45:45 +00:00
|
|
|
- path: _test\.go
|
2020-03-16 22:53:24 +00:00
|
|
|
linters:
|
|
|
|
- gosec
|
2021-08-26 15:45:45 +00:00
|
|
|
- linters:
|
|
|
|
- lll
|
|
|
|
source: "https://"
|
|
|
|
max-same-issues: 50
|
2020-06-26 22:26:55 +00:00
|
|
|
|
2020-03-16 22:53:24 +00:00
|
|
|
linters-settings:
|
|
|
|
dogsled:
|
|
|
|
max-blank-identifiers: 3
|
2021-08-26 15:45:45 +00:00
|
|
|
golint:
|
|
|
|
min-confidence: 0
|
2020-03-16 22:53:24 +00:00
|
|
|
maligned:
|
|
|
|
suggest-new: true
|
2021-08-26 15:45:45 +00:00
|
|
|
misspell:
|
|
|
|
locale: US
|
2020-11-24 15:43:08 +00:00
|
|
|
nolintlint:
|
|
|
|
allow-unused: false
|
|
|
|
allow-leading-space: true
|
|
|
|
require-explanation: false
|
|
|
|
require-specific: false
|
2021-09-05 11:03:06 +00:00
|
|
|
gofumpt:
|
2022-06-24 16:16:19 +00:00
|
|
|
lang-version: "1.18"
|
2021-09-05 11:03:06 +00:00
|
|
|
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)
|