-
Notifications
You must be signed in to change notification settings - Fork 43
/
.golangci.yml
80 lines (79 loc) · 1.75 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
run:
timeout: 10m
linters:
enable-all: false
enable:
- durationcheck
- errcheck
- gci
- gofumpt
- goheader
- goprintffuncname
- gosec
- gosimple
- govet
- importas
- ineffassign
- lll
- misspell
- nakedret
- nolintlint
- revive
- staticcheck
- tenv
- unconvert
- unused
- paralleltest
- wastedassign
- whitespace
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: pkg/pf/tests
linters:
- lll
- paralleltest
- path: pkg/tests
linters:
- lll
- paralleltest
- path: pkg/pf/tests
linters:
- lll
- paralleltest
exclude:
- "unused-parameter: parameter"
- "redefines-builtin-id:"
- "exhaustive"
exclude-dirs:
- pkg/tf2pulumi/internal/addrs
- pkg/tf2pulumi/internal/config
- pkg/tf2pulumi/internal/configs
- pkg/vendored
# TODO(https://github.com/pulumi/pulumi-terraform-bridge/issues/2474)
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/pulumi/pulumi-terraform-bridge)
skip-generated: true
paralleltest:
ignore-missing-subtests: true
nakedret:
# Make an issue if func has more lines of code than this setting, and it has naked returns.
# Default: 30
max-func-lines: 60
govet:
enable:
- nilness
# Reject comparisons of reflect.Value with DeepEqual or '=='.
- reflectvaluecompare
# Reject sort.Slice calls with a non-slice argument.
- sortslice
# Detect write to struct/arrays by-value that aren't read again.
- unusedwrite
importas:
alias:
- pkg: github.com/pulumi/pulumi/sdk/v3/proto/go
alias: pulumirpc