-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
executable file
·75 lines (70 loc) · 1.28 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
run:
deadline: 5m
issues-exit-code: 1
# skip-dirs: vendor
skip-dirs-use-default: true
tests: false
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
linters:
enable:
- bodyclose
- deadcode
- errcheck
# - goimports
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
# - unused
- varcheck
# - dupl
# - lll
- unparam
- sqlclosecheck
- unconvert
- noctx
# - gomnd
- gocritic
# - scopelint
- dogsled
# - nolintlint
- misspell
# - maligned
- prealloc
# - gofumpt
- gocognit
# - stylecheck
- gosec
disable:
- unused
- goimports
- goconst
linters-settings:
gocritic:
disabled-checks:
# Comment out line this because this is disabled by default.
- commentFormatting
gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 40
errcheck:
check-blank: true
check-type-assertions: true
issues:
exclude-rules:
- linters:
- staticcheck
text: "SA1019:"
- linters:
- gosec
text: "G402:"
- linters:
- gocritic
text: "singleCaseSwitch:"
severity:
default-severity: info