forked from bpg/terraform-provider-proxmox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
88 lines (88 loc) · 1.76 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# 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