0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00
terraform-provider-proxmox/.golangci.yml
Pavel Boldyrev 343e8045c1
feat(vm): add network device resources (#376)
* wip

* experimenting with terraform plugin framework

* cleaning up poc and adding tests

* adding read / update / delete

* update bridge_vlan_aware and MTU

* add ipv6 and simplify IP support

* fix provider's schema

* add docs

* run linter from cmdline

* disable TF acceptance tests

* add VLAN

* update docs

* add examole

* cleanup
2023-06-23 22:47:25 +00:00

89 lines
1.8 KiB
YAML

# v1.51.2
run:
deadline: 5m
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:
nolintlint:
# Disable to ensure that nolint directives don't have a leading space.
# Default is true.
allow-leading-space: false
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
ignoretests: true
revive:
exported: ["checkPrivateReceivers"]
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
- tagliatelle
- testpackage
- varnamelen
fast: false