Repository navigation
Expand file tree
/
Copy path.golangci.yml
More file actions
89 lines (89 loc) · 1.81 KB
/
Copy path.golangci.yml
File metadata and controls
89 lines (89 loc) · 1.81 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "2"
run:
modules-download-mode: readonly
linters:
default: none
enable:
- bodyclose
- durationcheck
- errcheck
- gosec
- govet
- ineffassign
- misspell
- nilerr
- staticcheck
- unused
settings:
errcheck:
# Type assertions are used throughout the protobuf/config adapters to
# recover the concrete value registered with a section. golangci-lint
# 2.12 reports the omitted comma-ok value as an "unchecked error", even
# though these assertions are intentionally guarded by the registry.
check-type-assertions: false
check-blank: false
exclude-functions:
- io.Close
- (*os/exec.Cmd).Process.Kill
- (*os.File).Close
- (io.Closer).Close
gosec:
excludes:
- G104
- G304
- G204
- G301
- G302
- G306
- G115
- G122
- G703
confidence: medium
govet:
disable:
- fieldalignment
- shadow
enable-all: true
misspell:
locale: US
staticcheck:
checks:
- all
- -QF1001
- -QF1012
- -ST1000
- -ST1003
- -ST1005
- -ST1016
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- std-error-handling
rules:
- linters:
- errcheck
- gosec
path: _test\.go
- linters:
- errcheck
path: pkg/command/bash\.go
text: Error return value of.*Kill|Signal|Close
paths:
- template\.go$
- vendor
- tools/templates
- ^dist/
- builtin$
- ^examples/
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
exclusions:
generated: lax
paths:
- ^dist/
- builtin$
- ^examples/