forked from gane5hvarma/panther
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
87 lines (82 loc) · 1.74 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
run:
skip-dirs:
# Don't scan autogenerated Go client/models
- api/gateway/.*/(client|models)
linters:
disable-all: true
enable:
# enabled by default
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
# others to enable
- bodyclose
- depguard
- dogsled
- dupl
- funlen
- gocyclo
- golint
- gosec
- lll
- maligned
- misspell
- nakedret
- scopelint
- stylecheck
- unconvert
- unparam
- whitespace
# don't enable:
# Formatting (we check for that separately)
# - gofmt
# - goimports
#
# Other
# - gochecknoinits
# - gochecknoglobals
# - gocognit
# - gocritic
# - godox
# - interfacer
# - prealloc
# - wsl
linters-settings:
funlen:
lines: 120
statements: 60
lll:
line-length: 140
whitespace:
multi-if: true # Enforces newlines (or comments) after every multi-line if statement
multi-func: true # Enforces newlines (or comments) after every multi-line function signature
issues:
exclude-rules:
- path: '_test\.go'
linters:
- bodyclose
- dupl
- funlen
- unparam
- path: internal/compliance/aws_event_processor/processor/
linters:
# long switch statements for aws event types don't need to be broken up
- funlen
- gocyclo
- path: internal/compliance/snapshot_poller/
linters:
# struct field names are designed for Python access, won't match Go style
- dupl
- golint
- stylecheck
- path: internal/compliance/snapshot_poller/pollers/aws/awstest/
linters:
# long lines with raw test strings
- lll