-
Notifications
You must be signed in to change notification settings - Fork 5
/
.golangci.yml
37 lines (32 loc) · 856 Bytes
/
.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
issues:
# Print all issues reported by all linters.
max-issues-per-linter: 0
max-same-issues: 0
# Don't ignore some of the issues that golangci-lint considers okay.
exclude-use-default: false
exclude-rules:
# Don't warn on unused parameters.
# Parameter names are useful; replacing them with '_' is undesirable.
- linters: [revive]
text: 'unused-parameter: parameter \S+ seems to be unused, consider removing or renaming it as _'
output:
# Make output more digestible with quickfix in vim.
sort-results: true
print-issued-lines: false
linters:
enable:
- gofumpt
- nolintlint
- revive
linters-settings:
errcheck:
exclude-functions:
- fmt.Fprint
- fmt.Fprintf
- fmt.Fprintln
govet:
enable:
- niliness
- reflectvaluecompare
- sortslice
- unusedwrite