-
Notifications
You must be signed in to change notification settings - Fork 559
Expand file tree
/
Copy path.golangci.yml
More file actions
94 lines (94 loc) · 1.81 KB
/
.golangci.yml
File metadata and controls
94 lines (94 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
90
91
92
93
94
formatters:
enable:
- gofumpt
- goimports
exclusions:
generated: lax
settings:
gofumpt:
extra-rules: true
goimports:
local-prefixes:
- github.com/envoyproxy/go-control-plane
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- bodyclose
- contextcheck
- errorlint
- exptostd
- gocritic
- godot
- gosec
- govet
- misspell
- modernize
- noctx
- nolintlint
- perfsprint
- revive
- staticcheck
- testifylint
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
- usetesting
- whitespace
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- gosec
path: pkg/test/resource/v3/secret.go
text: G101
settings:
exhaustive:
default-signifies-exhaustive: true
gocritic:
disabled-checks:
- appendAssign
gosec:
excludes:
- G115
misspell:
locale: US
nolintlint:
require-specific: true
perfsprint:
int-conversion: true
err-error: true
errorf: true
sprintf1: true
strconcat: true
revive:
enable-default-rules: true
rules:
- name: var-naming
arguments:
- ["ID"] # AllowList
- ["VM"] # DenyList
- - skip-initialism-name-checks: true
upper-case-const: true
skip-package-name-checks: true
skip-package-name-collision-with-go-std: true
staticcheck:
checks:
- all
- -ST1003
testifylint:
disable:
- float-compare
- go-require
enable-all: true
unparam:
check-exported: false
version: "2"