-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.golangci.yml
More file actions
49 lines (47 loc) · 951 Bytes
/
.golangci.yml
File metadata and controls
49 lines (47 loc) · 951 Bytes
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
version: "2"
linters:
default: none
enable:
- misspell
- govet
- revive
- ineffassign
- gomodguard
- unused
- staticcheck
settings:
staticcheck:
checks:
- "all"
- "-ST1000"
- "-ST1003"
- "-ST1005"
- "-ST1016"
- "-ST1020"
- "-ST1021"
- "-ST1022"
- "-ST1023"
misspell:
locale: US
exclusions:
presets: []
rules:
- text: "instead of using struct literal"
linters:
- revive
- text: "should have a package comment"
linters:
- revive
- text: "should have comment or be unexported"
linters:
- revive
- text: "time-naming"
linters:
- revive
- text: "error strings should not be capitalized or end with punctuation or a newline"
linters:
- revive
formatters:
enable:
- gofmt
- goimports