blob: 68de2c5aab57bd5975ca6689bac1c26dec396a8c (
plain) (
blame)
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
|
---
version: "2"
linters:
default: none
enable:
- asciicheck
- errcheck
- govet
- ineffassign
- misspell
- nolintlint
- revive
- staticcheck
- unused
settings:
staticcheck:
checks:
- all
- '-ST1000' # disable the rule SA1000 pkg comment
- '-ST1003' # disable the rule SA1003 ALL_CAPS VARS
- '-ST1005' # disable the rule SA1005 error strings should not be capitalized
- '-ST1020' # Exported methods comment style
- '-ST1021' # Exported methods comment style
- '-ST1022' # Exported methods comment style
revive:
confidence: 0.8
severity: warning
enable-all-rules: true
rules:
- name: cyclomatic
arguments:
- 7
- name: cognitive-complexity
arguments:
- 9
- name: argument-limit
arguments:
- 5
- name: line-length-limit
arguments:
- 120
- name: function-length
arguments:
- 20
- 0
- name: function-result-limit
arguments:
- 3
- name: var-naming
arguments:
- []
- []
- - upperCaseConst: true
disabled: true
- name: add-constant
disabled: true
- name: max-public-structs
disabled: true
- name: banned-characters
disabled: true
- name: package-comments
disabled: true
- name: file-header
disabled: true
- name: exported
disabled: true
exclusions:
generated: lax
rules:
- linters:
- line-length-limit
- revive
path: _test\.go
- linters:
- revive
text: 'unused-parameter: parameter \S+ seems to be unused, consider removing or renaming it as _'
- linters:
- revive
text: 'empty-block: this block is empty, you can remove it'
- linters:
- errcheck
path: _test\.go
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Unset|Set)?env)|afero.WriteFile. is not checked
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofumpt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
|