generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.golangci.yml
63 lines (63 loc) · 1.17 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
version: "2"
run:
concurrency: 4
issues-exit-code: 1
tests: true
output:
formats:
text:
path: stdout
print-linter-name: true
print-issued-lines: true
linters:
default: none
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unconvert
- unused
settings:
errcheck:
check-type-assertions: false
check-blank: false
exclude-functions:
- fmt:.*,io/ioutil:^Read.*,io:Close
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- staticcheck
text: S(1002|1008|1021)
- linters:
- staticcheck
text: 'SA(1006|1019|4006|4010|4017|5007|6005|9004):'
- linters:
- lll
source: '^//go:generate '
paths:
- .*\.hcl2spec\.go$
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
uniq-by-line: true
formatters:
enable:
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- .*\.hcl2spec\.go$
- third_party$
- builtin$
- examples$