forked from konflux-ci/service-provider-integration-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
39 lines (36 loc) · 960 Bytes
/
.golangci.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
# Configuration file for golangci-lint
run:
tests: false # don't include test files in the analysis
skip-dirs:
- integration_tests # don't include the integration tests in the analysis
linters:
# this should enable the following linters in addition to the default ones
enable:
- gosec
- bodyclose
- containedctx
- contextcheck
- errchkjson
- exportloopref
- goerr113
- makezero
- nilerr
- noctx
- prealloc
- wrapcheck
- nolintlint
- loggercheck
linters-settings:
wrapcheck:
ignoreSigs:
# These are our timers that just forward the errors so there's no need to wrap such errors.
- .ObserveValuesAndDuration(
# These are the default ignores that we need to repeat here, because we cannot just add to the list :-\
- .Errorf(
- errors.New(
- errors.Unwrap(
- .Wrap(
- .Wrapf(
- .WithMessage(
- .WithMessagef(
- .WithStack(