-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
72 lines (72 loc) · 1.45 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
linters-settings:
funlen:
ignore-comments: true
lines: 160
statements: 60
gocyclo:
min-complexity: 15
goimports:
local-prefixes: "github.com/skiff-sh/kube"
misspell:
locale: US
nolintlint:
allow-unused: false # report any unused nolint directives
require-explanation: true # require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
revive:
confidence: 0
rules:
- name: blank-imports
disabled: true
dogsled:
max-blank-identifiers: 3
nakedret:
max-func-lines: 40
stylecheck:
checks:
- "-ST1000"
gosec:
excludes:
- G304
- G601
- G115
linters:
disable-all: true
enable:
- dogsled
- dupl
- errcheck
- copyloopvar
- funlen
- gochecknoinits
- gocritic
- goconst
- gocyclo
- gofumpt
- revive
- rowserrcheck
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- staticcheck
- stylecheck
- sqlclosecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
# bodyclose doesn't work properly -> https://github.com/timakin/bodyclose/issues/60
issues:
exclude-rules:
- linters:
- revive
text: "^(package-comments)"
# enable issues excluded by default
exclude-use-default: false