0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 18:42:58 +00:00
terraform-provider-proxmox/.golangci.yml
Pavel Boldyrev 7d2554db7d
acceptance tests!
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-02-16 23:09:55 -05:00

81 lines
1.5 KiB
YAML

# v1.55.2
issues:
new-from-rev: 9101977dc81f64db077b9a1eda2fe401359854c9
# Maximum issues count per one linter. Set to 0 to disable.
# Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable.
# Default is 3.
max-same-issues: 0
include:
- EXC0012
- EXC0014
exclude-rules:
# Exclude duplicate code and function length and complexity checking in test
# files (due to common repeats and long functions in test code)
- path: _(test|gen)\.go
linters:
- cyclop
- dupl
- gocognit
- funlen
- lll
- path: _types\.go
linters:
- lll
linters-settings:
exhaustive:
default-signifies-exhaustive: true
govet:
check-shadowing: true
cyclop:
max-complexity: 25
maligned:
suggest-new: true
dupl:
threshold: 150
goconst:
min-len: 10
min-occurrences: 4
funlen:
lines: 80
statements: 60
errcheck:
check-blank: true
linters:
enable-all: true
disable:
# deprecated
- deadcode
- gocyclo
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- rowserrcheck
- scopelint
- structcheck
- varcheck
- wastedassign
# require massive refactoring
- cyclop
- forcetypeassert
- funlen
- gocognit
# others
- depguard
- exhaustivestruct
- exhaustruct
- gci
- goerr113
- gomnd
- ireturn
- maintidx
- nlreturn
- perfsprint
- tagliatelle
- testpackage
- varnamelen
fast: false