-
Notifications
You must be signed in to change notification settings - Fork 668
Expand file tree
/
Copy path.golangci.next.yaml
More file actions
98 lines (92 loc) · 1.94 KB
/
.golangci.next.yaml
File metadata and controls
98 lines (92 loc) · 1.94 KB
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
95
96
97
98
# https://golangci-lint.run/usage/configuration
#
# This file is for linters that might be interesting to enforce in the future.
# Rules that should be enforced immediately belong in [.golangci.yaml].
#
# Both files are used by [.github/workflows/lint.yaml].
version: "2"
# https://golangci-lint.run/usage/linters
linters:
default: all
disable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- copyloopvar
- depguard
- dupword
- durationcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exptostd
- fatcontext
- forbidigo
- ginkgolinter
- gocheckcompilerdirectives
- gochecksumtype
- goheader
- gomoddirectives
- gomodguard
- goprintffuncname
- gosmopolitan
- grouper
- iface
- importas
- interfacebloat
- intrange
- loggercheck
- makezero
- mirror
- misspell
- musttag
- nilerr
- nilnesserr
- noctx
- nolintlint
- nosprintfhostport
- prealloc
- promlinter
- protogetter
- reassign
- recvcheck
- rowserrcheck
- sloglint
- spancheck
- sqlclosecheck
- tagalign
- testifylint
- unconvert
- unparam
- usestdlibvars
- usetesting
- wastedassign
- wsl
- zerologlint
settings:
thelper:
# https://github.com/kulti/thelper/issues/27
tb: { begin: true, first: true }
test: { begin: true, first: true, name: true }
exclusions:
warn-unused: true
# Ignore built-in exclusions
presets: []
rules:
# We call external linters when they are installed: Flake8, ShellCheck, etc.
- linters: [gosec]
path: '_test[.]go$'
text: 'G204: Subprocess launched with variable'
# https://golangci-lint.run/usage/formatters
formatters:
enable:
- gofumpt
issues:
# Fix only when requested
fix: false
# Show all issues at once
max-issues-per-linter: 0
max-same-issues: 0
uniq-by-line: false