-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.golangci.yml
More file actions
63 lines (58 loc) · 1.82 KB
/
Copy path.golangci.yml
File metadata and controls
63 lines (58 loc) · 1.82 KB
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
# golangci-lint baseline.
#
# Default linter set ("standard": errcheck, govet, ineffassign,
# staticcheck, unused) is enabled. The exclusion rules below suppress
# known pre-existing issues so CI starts green; remove entries as the
# underlying issues get fixed.
version: "2"
run:
timeout: 5m
linters:
default: standard
exclusions:
rules:
# errcheck: deferred Close() calls left unchecked.
- path: cmd/periscope/exec_handler\.go
linters: [errcheck]
text: ws\.Close
- path: cmd/periscope/cluster_shell_handler\.go
linters: [errcheck]
text: ws\.Close
- path: cmd/periscope/main\.go
linters: [errcheck]
text: stream\.Close
- path: internal/audit/sqlite_sink\.go
linters: [errcheck]
text: rows\.Close
- path: internal/exec/session\.go
linters: [errcheck]
text: stdinW\.Close
- path: internal/k8s/helm\.go
linters: [errcheck]
text: gz\.Close
- path: internal/k8s/logs\.go
linters: [errcheck]
text: rc\.Close
- path: internal/k8s/openapi\.go
linters: [errcheck]
text: resp\.Body\.Close
- path: internal/spa/handler\.go
linters: [errcheck]
text: f\.Close
# staticcheck: style and deprecated-API findings.
- path: internal/clusters/registry_test\.go
linters: [staticcheck]
text: S1009
- path: internal/k8s/cani_test\.go
linters: [staticcheck]
text: QF1008
- path: internal/k8s/exec\.go
linters: [staticcheck]
text: SA1019
- path: internal/k8s/nodes\.go
linters: [staticcheck]
text: SA1019
# unused: errSkipDiskCheck reserved for non-linux build tags.
- path: internal/audit/diskstat_common\.go
linters: [unused]
text: errSkipDiskCheck