-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
94 lines (91 loc) · 1.91 KB
/
.golangci.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
run:
concurrency: 4
timeout: 1m
go: '1.17'
linters-settings:
wrapcheck:
ignoreSigs:
- .Errorf(
- errors.New(
- errors.Unwrap(
- .Wrap(
- .Wrapf(
- .WithMessage(
- .WithMessagef(
- .WithStack(
- .WrapError(
revive:
ignore-generated-header: true
severity: warning
rules:
- name: exported
severity: warning
- name: error-return
severity: warning
- name: error-naming
severity: warning
- name: if-return
severity: warning
- name: var-naming
severity: warning
- name: var-declaration
severity: warning
- name: receiver-naming
severity: warning
- name: errorf
severity: warning
- name: empty-block
severity: warning
- name: unused-parameter
severity: warning
- name: unreachable-code
severity: warning
- name: redefines-builtin-id
severity: warning
- name: superfluous-else
severity: warning
- name: unexported-return
severity: warning
- name: indent-error-flow
severity: warning
- name: blank-imports
severity: warning
- name: range
severity: warning
- name: time-naming
severity: warning
- name: context-as-argument
severity: warning
- name: context-keys-type
severity: warning
- name: indent-error-flow
severity: warning
linters:
disable-all: true
enable:
- asciicheck
- durationcheck
- errcheck
- errorlint
- exhaustive
- gosec
- govet
- makezero
- nilerr
- rowserrcheck
- exportloopref
- sqlclosecheck
- staticcheck
- typecheck
- bodyclose
- noctx
- prealloc
- gosimple
presets:
- comment
- error
- format
- metalinter
- unused
issues:
exclude-use-default: false