forked from KeyboardInterrupt/cifuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
65 lines (63 loc) · 1.34 KB
/
.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
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
linters:
disable-all: true
enable:
- errcheck
- gocritic
- govet
- nonamedreturns
- staticcheck
- revive
- wrapcheck
presets:
- unused
linters-settings:
revive:
rules:
- name: var-naming
severity: warning
disabled: false
arguments:
- ["ID"] # Ignore
staticcheck:
checks:
- "-SA3000"
gocritic:
enabled-tags:
- diagnostic
- performance
disabled-checks:
- appendCombine
- appendAssign
- commentFormatting
- ifElseChain
- singleCaseSwitch
wrapcheck:
ignoreSigs:
# all go error pkg related signatures
- .Errorf(
- errors.New(
- errors.Unwrap(
- errors.Join(
- .Wrap(
- .Wrapf(
- .WithMessage(
- .WithMessagef(
- .WithStack(
# our own error signatures
- .WrapIncorrectUsageError(
- .WrapCouldBeSandboxError(
- .WrapExecError(
- .WrapSilentError
# only check external packages
- code-intelligence.com
# context doesn't really need to be wrapped/have a stack trace
- context.Context
ignorePackageGlobs:
# ignoring test packages because we check for errors and don't need to wrap them
- "integration-tests"
- "e2e"
- "internal/testutil"
run:
timeout: 3m
skip-dirs:
- scratch