-
Notifications
You must be signed in to change notification settings - Fork 62
/
.golangci.yml
33 lines (28 loc) · 998 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
run:
# also lint files within /scripts. Those have "//go:build scripts" set.
build-tags:
- scripts
linters:
enable:
# https://github.com/golangci/golangci-lint#enabled-by-default-linters
# Additional linters you want to activate may be specified here...
# ---
# https://github.com/mgechev/revive
# replacement for the now deprecated official golint linter, see https://github.com/golang/go/issues/38968
- revive
# ---
# https://github.com/maratori/testpackage
# used to enforce blackbox testing
- testpackage
# ---
# https://github.com/securego/gosec
# inspects source code for security problems by scanning the Go AST.
- gosec
# ---
# https://github.com/sivchari/tenv
# prefer t.Setenv instead of os.Setenv within test code.
- tenv
# ---
# https://github.com/polyfloyd/go-errorlint
# ensure we are comparing errors via errors.Is, types/values via errors.As and wrap errors with %w.
- errorlint