-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
66 lines (63 loc) · 1.54 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
66
run:
tests: true
linters:
enable:
- revive
- ireturn
issues:
exclude-dirs:
- apigen
exclude-rules:
- linters:
- revive
source: ". \"github.com/onsi/(ginkgo/v2|gomega)\""
text: "dot-imports: should not use dot imports"
linters-settings:
revive:
enable-all-rules: false
ignore-generated-header: false
severity: error
confidence: 0.8
rules:
- name: argument-limit
arguments: [3]
- name: blank-imports
- name: cognitive-complexity
arguments: [7]
exclude:
- "TEST"
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: early-return
- name: empty-block
- name: empty-lines
- name: error-return
- name: error-strings
- name: error-naming
- name: errorf
- name: exported
- name: function-result-limit
arguments: [3]
- name: import-shadowing
- name: increment-decrement
- name: indent-error-flow
- name: max-control-nesting
arguments: [3]
- name: modifies-parameter
- name: package-comments
severity: warning
- name: range
- name: receiver-naming
- name: redefines-builtin-id
- name: struct-tag
- name: superfluous-else
- name: time-equal
- name: time-naming
- name: unexported-return
- name: unhandled-error
- name: unreachable-code
- name: unused-parameter
- name: use-any
- name: var-declaration
- name: var-naming