-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yaml
More file actions
32 lines (29 loc) · 795 Bytes
/
Copy path.golangci.yaml
File metadata and controls
32 lines (29 loc) · 795 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
version: '2'
linters:
default: standard
enable:
- revive
settings:
revive:
rules:
# Enforce consistent variable naming
- name: var-naming
govet:
enable:
# Prefer keyed struct over positional struct initialization
# Only works for non local structs tho, but better than nothing
- composites
exclusions:
rules:
- linters:
- staticcheck
# Ignore nil context warning in tests
text: 'do not pass a nil Context'
- linters:
- revive
# Ignore common package name warning
text: 'avoid meaningless package names'
- linters:
- revive
# Ignore _type warning usage on function parameter
text: "method parameter type_ should be type"