-
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy path.golangci.yml
More file actions
31 lines (29 loc) · 651 Bytes
/
Copy path.golangci.yml
File metadata and controls
31 lines (29 loc) · 651 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
version: "2"
linters:
default: none
enable:
- govet
- staticcheck
- errcheck
- ineffassign
- nilerr
settings:
govet:
enable-all: true
disable:
- shadow
- fieldalignment
errcheck:
exclude-functions:
- (*os.File).Close
- os.Setenv
- os.Unsetenv
staticcheck:
checks:
- "all"
- "-ST1000" # package comments — pre-existing
- "-ST1003" # naming (Uri/Url/Json → URI/URL/JSON) — pre-existing, would be breaking
- "-ST1005" # error string capitalisation — pre-existing constants
formatters:
enable:
- gofmt