-
Notifications
You must be signed in to change notification settings - Fork 100
/
.golangci.yml
73 lines (70 loc) · 1.42 KB
/
.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
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
66
67
68
69
70
71
72
73
run:
concurrency: 2
timeout: 5m
build-tags:
- apparmor
- e2e_test
- fakeroot_engine
- seccomp
- selinux
- singularity_engine
- sylog
linters:
disable-all: true
enable-all: false
enable:
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- decorder
- dogsled
- dupl
- dupword
- exportloopref
- forcetypeassert
- gofumpt
- goimports
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- grouper
- ineffassign
- interfacebloat
- maintidx
- misspell
- nakedret
- nolintlint
- prealloc
- reassign
- revive
- staticcheck
- tenv
- typecheck
- unparam
- unused
- whitespace
linters-settings:
misspell:
locale: US
issues:
max-per-linter: 0
max-same-issues: 0
exclude:
# EXC0004 excluded due to spurious "should have signature XYZ" errors on
# MarshalJSON methods. See
# https://golangci-lint.run/usage/false-positives/#exc0004 for more
# information.
- EXC0004
exclude-rules:
- linters:
- gosec
# G107 disallows making http calls to a URL stored in a variable
# G204 disallows exec.Command() with a command/args stored in variables
# G306 disallows creation of files with permissions greater than 0600
text: "^(G107|G204|G306):"
exclude-files:
- "internal/pkg/util/user/cgo_lookup_unix.go"