-
Notifications
You must be signed in to change notification settings - Fork 99
/
.golangci.yaml
36 lines (32 loc) · 963 Bytes
/
.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
run:
concurrency: 4
deadline: 10m
linters:
disable:
- unused
enable:
- revive
skip-files:
- "zz_generated\\..*\\.go$"
issues:
exclude-use-default: false
exclude:
# revive
- var-naming # ((var|const|struct field|func) .* should be .*
- dot-imports # should not use dot imports
- package-comments # package comment should be of the form
- indent-error-flow # if block ends with a return statement, so drop this else and outdent its block
- unexported-return # exported func .* returns unexported type .*, which can be annoying to use
- "exported: (type|func) name will be used as .* by other packages, and that stutters;"
# typecheck:
- "undeclared name: `.*`"
- "\".*\" imported but not used"
exclude-rules:
- linters:
- staticcheck
text: "SA1019:" # Excludes messages where deprecated variables are used
linters-settings:
revive:
rules:
- name: duplicated-imports
- name: unused-parameter