-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
110 lines (107 loc) · 2.24 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
linters:
disable-all: true
enable:
- errcheck
- funlen
- gocritic
- gocyclo
- goimports
- gofmt
- gosimple
- govet
- ineffassign
- lll
- revive
- staticcheck
- unused
linters-settings:
errcheck:
check-type-assertions: true
funlen:
lines: 80
statements: 80
ignore-comments: true
gocritic:
gocyclo:
min-complexity: 20
goimports:
local-prefixes: github.com/7sDream/geko
gofmt:
gosimple:
checks:
- "all"
govet:
check-shadowing: true
ineffassign:
lll:
line-length: 120
tab-width: 4
revive:
confidence: 0
rules:
- name: context-keys-type
- name: var-declaration
- name: unexported-return
- name: errorf
- name: blank-imports
- name: context-as-argument
- name: dot-imports
- name: error-return
- name: error-strings
- name: error-naming
- name: exported
arguments:
- sayRepetitiveInsteadOfStutters
- name: if-return
- name: increment-decrement
- name: var-naming
- name: package-comments
- name: range
- name: receiver-naming
- name: indent-error-flow
- name: argument-limit
arguments:
- 5
- name: empty-block
- name: superfluous-else
- name: modifies-parameter
- name: unused-parameter
arguments:
- allowRegex: "^_"
- name: unreachable-code
- name: unnecessary-stmt
- name: struct-tag
- name: modifies-value-receiver
- name: constant-logical-expr
- name: redefines-builtin-id
- name: function-result-limit
arguments:
- 3
- name: range-val-in-closure
- name: range-val-address
- name: unhandled-error
arguments:
- ^fmt\..*
- name: string-of-int
- name: unconditional-recursion
- name: identical-branches
- name: defer
- name: optimize-operands-order
- name: use-any
staticcheck:
checks:
- "all"
unused:
run:
go: 1.18
issues:
exclude-use-default: false
exclude-rules:
- path: _test\.go
linters:
- funlen
- errcheck
- unused
max-issues-per-linter: 0
max-same-issues: 0
new: false