-
Notifications
You must be signed in to change notification settings - Fork 5
/
.golangci.yaml
73 lines (70 loc) · 1.77 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
67
68
69
70
71
72
73
run:
timeout: 5m
issues:
fix: true
linters:
enable:
- revive
linters-settings:
revive:
ignore-generated-header: true
severity: error
confidence: 0.8
error-code: 1
warning-code: 1
directive:
specify-disable-reason: true
rules:
- name: atomic
- name: argument-limit
arguments: 5
- name: blank-imports
- name: bool-literal-in-expr
- name: cognitive-complexity
arguments: 25
- name: confusing-results
- name: context-as-argument
- name: context-keys-type
- name: constant-logical-expr
- name: cyclomatic
arguments: 50
- name: deep-exit
- name: dot-imports
- name: duplicated-imports
- name: empty-lines
- name: empty-block
- name: errorf
- name: error-return
- name: error-strings
- name: error-naming
- name: function-result-limit
arguments: 4
- name: if-return
- name: imports-blacklist
- name: increment-decrement
- name: indent-error-flow
- name: line-length-limit
arguments: 120
- name: max-public-structs
arguments: 4
- name: modifies-parameter
- name: modifies-value-receiver
- name: package-comments
- name: range
- name: range-val-address
- name: range-val-in-closure
- name: receiver-naming
- name: redefines-builtin-id
- name: string-of-int
- name: struct-tag
- name: superfluous-else
- name: time-naming
- name: unexported-return
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-receiver
- name: unused-parameter
- name: var-declaration
- name: var-naming
arguments: [["ID"]]
- name: waitgroup-by-value