-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
67 lines (67 loc) · 1.46 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
linters-settings:
gocritic:
settings:
ifElseChain:
minThreshold: 5
goheader:
values:
regexp:
ws: "[ ]*" # Space and tab, not using \s to avoid allowing other forms of whitespace such as newlines
AUTHOR: .*
template-path: ./.preamble.txt
maintidx:
under: 30
mnd:
ignored-numbers:
- '0600'
- '0666'
- '0700'
- '42'
- '2'
- '1'
- '180'
- '90'
- '60'
- '360'
- '255'
- '2.0'
revive:
rules:
- name: call-to-gc
# - name: comments-density
- name: confusing-naming
- name: constant-logical-expr
- name: context-as-argument
- name: context-keys-type
- name: deep-exit
- name: defer
- name: dot-imports
- name: duplicated-imports
- name: empty-block
- name: errorf
- name: exported
arguments:
- "disableStutteringCheck"
- name: increment-decrement
- name: indent-error-flow
- name: package-comments
- name: range
- name: receiver-naming
- name: string-of-int
- name: struct-tag
- name: superfluous-else
- name: time-naming
- name: unexported-return
- name: unreachable-code
- name: unused-parameter
- name: var-declaration
issues:
exclude-rules:
- path: (.+)_test.go
linters:
- noctx
- mnd
- dupl
- path: config.go
linters:
- mnd