mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-28 14:25:37 +00:00
* chore(ci): update actions/create-github-app-token action (v1.9.3 → v1.10.0) | datasource | package | from | to | | ----------- | ------------------------------- | ------ | ------- | | github-tags | actions/create-github-app-token | v1.9.3 | v1.10.0 | * chore(deps): update module github.com/golangci/golangci-lint (v1.57.2 → v1.58.0) in /tools | datasource | package | from | to | | ---------- | --------------------------------- | ------- | ------- | | go | github.com/golangci/golangci-lint | v1.57.2 | v1.58.0 | * disable picky linters Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --------- Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
89 lines
1.7 KiB
YAML
89 lines
1.7 KiB
YAML
# v1.57.1
|
|
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
|
|
- path: fwprovider/tests/.*\.go
|
|
linters:
|
|
- paralleltest
|
|
# Exclude `lll` issues for long lines with URLs.
|
|
- linters:
|
|
- lll
|
|
source: "^.*https?://.*$"
|
|
linters-settings:
|
|
exhaustive:
|
|
default-signifies-exhaustive: true
|
|
cyclop:
|
|
max-complexity: 25
|
|
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
|
|
- execinquery
|
|
- gocyclo
|
|
- golint
|
|
- ifshort
|
|
- interfacer
|
|
- maligned
|
|
- nosnakecase
|
|
- rowserrcheck
|
|
- scopelint
|
|
- structcheck
|
|
- varcheck
|
|
- wastedassign
|
|
# require massive refactoring
|
|
- cyclop
|
|
- forcetypeassert
|
|
- funlen
|
|
- gocognit
|
|
# others
|
|
- canonicalheader
|
|
- depguard
|
|
- exhaustivestruct
|
|
- exhaustruct
|
|
- gci
|
|
- err113
|
|
- gomnd
|
|
- ireturn
|
|
- maintidx
|
|
- mnd
|
|
- nestif
|
|
- nlreturn
|
|
- perfsprint
|
|
- tagliatelle
|
|
- testpackage
|
|
- tparallel
|
|
- varnamelen
|
|
fast: false
|