-
Notifications
You must be signed in to change notification settings - Fork 263
Expand file tree
/
Copy path.golangci.yaml
More file actions
54 lines (54 loc) · 1.03 KB
/
.golangci.yaml
File metadata and controls
54 lines (54 loc) · 1.03 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
version: "2"
run:
output:
formats:
text:
path: stdout
print-linter-name: true
print-issued-lines: true
linters:
default: none
enable:
- errcheck
- gocritic
- govet
- ineffassign
- loggercheck
- misspell
- nakedret
- staticcheck
- unconvert
- unused
settings:
errcheck:
check-blank: false
staticcheck:
checks:
- all
- '-ST1001' # Dot imports are discouraged
- '-SA1019' # Using a deprecated function, variable, constant or field
- '-QF1008' # Omit embedded fields from selector expression
- '-QF1001' # Apply De Morgan’s law
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- ^zz_generated.*
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- ^zz_generated.*
- third_party$
- builtin$
- examples$