mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 02:31:10 +00:00
* refactoring existing cluster / firewall API for better composition * add basic security groups API fix linter errors * add rules API * fix after renaming resourceVirtualEnvironmentClusterIPSet * fix linter errors * make linter happy * even more refactoring * tidy up datasources * in refactoring spree * update examples * fix firewall resource/datasource & client error handling * add ipset(s) datasource * update docs * add security group resource with rules * docs * fix security group update, TODO: rule update * fix after rebase * add rule update, extract common rule schema, refactor group * fix linter errors * bump linter for ci * make alias and ipset reusable * make security group reusable * refactor datasources * add security group datasources * fix linter errors * update docs TODO: documentation for group datasources * add sg docs, update doc index * minor cleanup * fix examples & tests * stub for firewall-level options and rules * extract firewall interface * add firewall options and rules on the cluster level TODO: issues with rule list management * refactor all resources format AGAIN, now more flat, without complex subresources * sort out hierarchy of APIs and remove duplication in API wrappers * bring back security group * finally, working rules * restore cluster firewall option * add containers support * add options * move rules back under security group, update docs * fix vm_id / container_id attrs * add examples * cleanup * more cleanup Release-As: 0.17.0-rc1
87 lines
1.7 KiB
YAML
87 lines
1.7 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
|
|
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
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
# deprecated
|
|
- deadcode
|
|
- gocyclo
|
|
- golint
|
|
- ifshort
|
|
- interfacer
|
|
- maligned
|
|
- rowserrcheck
|
|
- scopelint
|
|
- structcheck
|
|
- varcheck
|
|
- wastedassign
|
|
# require massive refactoring
|
|
- cyclop
|
|
- forcetypeassert
|
|
- funlen
|
|
- gocognit
|
|
- govet
|
|
# others
|
|
- exhaustivestruct
|
|
- exhaustruct
|
|
- gci
|
|
- gochecknoinits
|
|
- godot
|
|
- goerr113
|
|
- gomnd
|
|
- grouper
|
|
- ireturn
|
|
- maintidx
|
|
- nlreturn
|
|
- nonamedreturns
|
|
- nosnakecase
|
|
- tagliatelle
|
|
- testpackage
|
|
- thelper
|
|
- varnamelen
|
|
- wsl
|
|
fast: false
|