-
Notifications
You must be signed in to change notification settings - Fork 53
/
.golangci.yaml
45 lines (45 loc) · 1.07 KB
/
.golangci.yaml
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
run:
tests: true
timeout: 5m
skip-dirs:
- pkg/test/mock
- pkg/test/testdata
skip-files:
- magefile.go
- /zz_generated
linters:
disable-all: true
enable:
- revive
- ineffassign
- gofmt
linters-settings:
revive:
ignore-generated-header: false
severity: warning
rules:
- name: atomic
- name: context-as-argument
- name: context-keys-type
- name: empty-block
- name: errorf
- name: error-naming
- name: error-return
- name: error-strings
- name: imports-blacklist
arguments:
["grpc.go4.org/**", "github.com/gogo/status", "github.com/gogo/codes"]
- name: increment-decrement
# - name: indent-error-flow
- name: package-comments
- name: range
- name: receiver-naming
- name: redefines-builtin-id
- name: time-naming
- name: unexported-return
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
- name: useless-break
- name: var-declaration
- name: waitgroup-by-value