forked from aws/eks-anywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
42 lines (42 loc) · 1.02 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
run:
timeout: 5m
skip-files:
- "zz_generated.*\\.go$"
skip-dirs:
- ".*/mocks"
- "manager/tilt_modules"
- "internal/aws-sdk-go-v2"
linters:
enable:
- gofumpt
- gci
- godot
- nakedret
- gocyclo
- revive
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/aws/eks-anywhere)
custom-order: true
skip-generated: false
godot:
exclude:
# Exclude todo comments.
- "(?i)^\\s*todo"
period: true
nakedret:
# never allow naked returns
max-func-lines: 0
gocyclo:
# Minimal code complexity to report.
min-complexity: 10
issues:
max-same-issues: 0
max-issues-per-linter: 0
include:
- EXC0012 # EXC0012 revive: exported (.+) should have comment( \(or a comment on this block\))? or be unexported
- EXC0014 # EXC0014 revive: comment on exported (.+) should be of the form "(.+)..."
- EXC0009 # EXC0009 revive: (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)