-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy path.golangci.yml
More file actions
116 lines (116 loc) · 2.68 KB
/
.golangci.yml
File metadata and controls
116 lines (116 loc) · 2.68 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: "2"
run:
allow-parallel-runners: true
timeout: 10m
linters:
default: none
enable:
- copyloopvar
- ginkgolinter
- govet
- ineffassign
- misspell
- nakedret
- staticcheck
- unconvert
- unused
settings:
gocyclo:
min-complexity: 50
goconst:
min-len: 3
min-occurrences: 10
exclusions:
generated: lax
rules:
- linters:
- goconst
path: _test\.go$
- linters:
- gocyclo
path: _test\.go$
- linters:
- unparam
path: _test\.go$
- linters:
- prealloc
path: _test\.go$
- linters:
- ineffassign
path: _test\.go$
- linters:
- ginkgolinter
path: _test\.go$
- linters:
- misspell
path: _test\.go$
- linters:
- unconvert
path: _test\.go$
- linters:
- goconst
- gocyclo
- unparam
- prealloc
- ineffassign
- unused
- ginkgolinter
- staticcheck
- misspell
- unconvert
path: test/
# Exclude ST1019 (duplicate imports) - project uses aliased imports intentionally
- linters:
- staticcheck
text: "ST1019"
# Exclude SA4022 (address of variable cannot be nil) - false positive for spec checks
- linters:
- staticcheck
text: "SA4022"
# Exclude ST1023 (should omit type from declaration) - style preference
- linters:
- staticcheck
text: "ST1023"
# Exclude QF1001/QF1003/QF1008/QF1011 - quickfix suggestions, not errors
- linters:
- staticcheck
text: "QF100"
- linters:
- staticcheck
text: "QF1011"
# Exclude S1021 (should merge variable declaration) - style preference
- linters:
- staticcheck
text: "S1021"
# Exclude ST1005 (error strings should not be capitalized) - existing codebase style
- linters:
- staticcheck
text: "ST1005"
# Exclude SA1019 (deprecated) - will be addressed separately
- linters:
- staticcheck
text: "SA1019"
# Exclude SA4006 (value never used) in test files
- linters:
- staticcheck
text: "SA4006"
path: _test\.go$
# Exclude SA1029 (context key type) in test files
- linters:
- staticcheck
text: "SA1029"
path: _test\.go$
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$