-
Notifications
You must be signed in to change notification settings - Fork 597
/
.golangci.next.yaml
42 lines (38 loc) · 1.02 KB
/
.golangci.next.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
# 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].
linters:
disable-all: true
enable:
- contextcheck
- err113
- gocritic
- godot
- godox
- gofumpt
- gosec # exclude-use-default
- nilnil
- nolintlint
- predeclared
- revive
- staticcheck # exclude-use-default
- tenv
- thelper
- tparallel
- wastedassign
issues:
exclude-rules:
# We call external linters when they are installed: Flake8, ShellCheck, etc.
- linters: [gosec]
path: '_test[.]go$'
text: 'G204: Subprocess launched with variable'
# https://github.com/golangci/golangci-lint/issues/2239
exclude-use-default: false
linters-settings:
thelper:
# https://github.com/kulti/thelper/issues/27
tb: { begin: true, first: true }
test: { begin: true, first: true, name: true }