forked from CrunchyData/postgres-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.next.yaml
44 lines (39 loc) · 949 Bytes
/
.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
43
44
# 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
- errchkjson
- gocritic
- godot
- godox
- goerr113
- gofumpt
- gosec # exclude-use-default
- nilnil
- nolintlint
- predeclared
- revive
- staticcheck # exclude-use-default
- tenv
- thelper
- tparallel
- wastedassign
issues:
# https://github.com/golangci/golangci-lint/issues/2239
exclude-use-default: false
linters-settings:
errchkjson:
check-error-free-encoding: true
thelper:
# https://github.com/kulti/thelper/issues/27
tb: { begin: true, first: true }
test: { begin: true, first: true, name: true }
run:
build-tags:
- envtest