forked from bpg/terraform-provider-proxmox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
123 lines (123 loc) · 2.34 KB
/
Copy path.golangci.yml
File metadata and controls
123 lines (123 loc) · 2.34 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: "2"
linters:
default: all
disable:
- canonicalheader
- cyclop
- depguard
- err113
- exhaustruct
- forcetypeassert
- funlen
- funcorder # nice to have, but currently generating too many errors
- gocognit
- gocyclo
- ireturn
- maintidx
- mnd
- nestif
- nlreturn
- noinlineerr
- perfsprint
- rowserrcheck
- tagliatelle
- testpackage
- tparallel
- varnamelen
- wastedassign
- wsl
settings:
cyclop:
max-complexity: 25
dupl:
threshold: 150
errcheck:
check-blank: true
exhaustive:
default-signifies-exhaustive: true
funlen:
lines: 80
statements: 60
goconst:
min-len: 10
min-occurrences: 4
gosec:
excludes:
- G115
- G117
- G703
- G704
lll:
line-length: 150
revive:
rules:
- name: "package-comments"
disabled: true
wrapcheck:
ignore-package-globs:
- github.com/bpg/terraform-provider-proxmox/*
wsl_v5:
allow-first-in-block: true
allow-whole-block: false
branch-max-lines: 2
disable:
- decl
- err
exclusions:
generated: lax
presets:
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- cyclop
- dupl
- funlen
- gocognit
- gosec
- lll
path: _(test|gen)\.go
- linters:
- recvcheck
path: .*/types/.+\.go
- linters:
- lll
- recvcheck
path: _types\.go
- linters:
- paralleltest
path: fwprovider/.*_test\.go
- linters:
- lll
source: ^.*https?://.*$
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
new-from-rev: 9101977dc81f64db077b9a1eda2fe401359854c9
formatters:
enable:
- gofmt
- gofumpt
- goimports
- gci
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
settings:
goimports:
local-prefixes:
- github.com/bpg/terraform-provider-proxmox
gci:
custom-order: true
sections:
- Standard
- Default
- Prefix(github.com/bpg/terraform-provider-proxmox)