-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
executable file
·92 lines (78 loc) · 1.64 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
88
89
90
91
92
run:
go: "1.19.5"
skip-dirs:
- "tools"
- "vendor"
output:
format: colored-line-number
linters-settings:
revive:
max-open-files: 2048
ignore-generated-header: true
severity: error
rules:
- name: add-constant
severity: warning
disabled: true
- name: defer
severity: warning
disabled: false
arguments:
- ["call-chain", "loop"]
- name: line-length-limit
severity: warning
arguments: [108]
- name: modifies-parameter
severity: warning
disabled: false
- name: nested-structs
severity: warning
disabled: false
- name: receiver-naming
severity: warning
disabled: false
- name: redefines-builtin-id
severity: warning
disabled: false
- name: unnecessary-stmt
severity: warning
disabled: false
- name: useless-break
severity: warning
disabled: false
- name: error-naming
severity: warning
disabled: false
- name: unreachable-code
severity: warning
disabled: false
linters:
disable-all: true
enable:
- deadcode
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- varcheck
- gocyclo
- goconst
- gofumpt
- goimports
- unconvert
- whitespace
- godot
- gosec
- revive
issues:
exclude-rules:
- path: '(.+)_test\.go'
text: "create a named constant for it"
- path: '(.+)_test\.go'
text: "make it a constant"
- path: '(.+)_test\.go'
linters:
- errcheck
fix: true