-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
150 lines (146 loc) · 3.72 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
run:
timeout: 10m
linters:
enable-all: true
disable:
- ireturn # Not relevant
- exhaustruct # Not relevant
- testpackage # Too strict
- varnamelen # Not relevant
- err113 # Too strict
- lll # Not relevant
# deprecated linters
- gomnd
- exportloopref
- execinquery
linters-settings:
depguard:
rules:
main:
deny:
- pkg: "github.com/instana/testify"
desc: not allowed
tagalign:
align: false
sort: true
order:
- description
- json
- toml
- yaml
- yml
- label
- label-slice-as-struct
- file
- kv
- export
revive:
rules:
- name: struct-tag
- name: blank-imports
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: error-return
- name: error-strings
- name: error-naming
- name: exported
- name: if-return
- name: increment-decrement
- name: var-naming
- name: var-declaration
- name: package-comments
disabled: true
- name: range
- name: receiver-naming
- name: time-naming
- name: unexported-return
- name: indent-error-flow
- name: errorf
- name: empty-block
- name: superfluous-else
- name: unused-parameter
- name: unreachable-code
- name: redefines-builtin-id
staticcheck:
checks:
- all
misspell:
locale: US
govet:
enable-all: true
disable:
- fieldalignment
tagliatelle:
case:
use-field-name: true
rules:
json: snake
testifylint:
disable:
- require-error
issues:
exclude-rules:
- path: '(.+)_test.go'
linters:
- funlen
- gosec
- path: '(.+)example_test.go'
linters:
- testableexamples
- path: 'pkg/client/errors_test.go'
text: 'tests: ExampleHandleError refers to unknown identifier: HandleError'
linters:
- govet
- path: 'pkg/client/errors_test.go'
text: 'Duplicate words \(true\) found'
linters:
- dupword
- path: 'pkg/message/send_message.go'
text: "got 'mentioned_user_ids' want 'mention_user_i_ds'"
linters:
- tagliatelle
- path: 'pkg/message/list_messages.go'
text: "Function 'listMessagesRequestToMap' is too long"
linters:
- funlen
- path: 'pkg/message/list_messages.go'
text: "calculated cyclomatic complexity for function listMessagesRequestToMap"
linters:
- cyclop
- path: 'pkg/channel/create.go'
text: "got 'operator_ids' want 'operator_i_ds'"
linters:
- tagliatelle
- path: 'pkg/channel/create.go'
text: "got 'user_ids' want 'user_i_ds'"
linters:
- tagliatelle
- path: 'pkg/channel/update.go'
text: "got 'operator_ids' want 'operator_i_ds'"
linters:
- tagliatelle
- path: 'pkg/channel/list.go'
text: "Function 'ListChannelRequestToMap' has too many statements"
linters:
- funlen
- path: 'pkg/channel/list.go'
text: 'cognitive complexity \d+ of func \`ListChannelRequestToMap\` is high'
linters:
- gocognit
- path: 'pkg/channel/list.go'
text: 'cyclomatic complexity \d+ of func `ListChannelRequestToMap` is high'
linters:
- gocyclo
- path: 'pkg/channel/list.go'
text: 'calculated cyclomatic complexity for function ListChannelRequestToMap'
linters:
- cyclop
- path: 'pkg/channel/typing.go'
text: "got 'user_ids' want 'user_i_ds'"
linters:
- tagliatelle
- path: 'pkg/message/migrate_messages.go'
text: "got 'mentioned_user_ids' want 'mention_user_i_ds'"
linters:
- tagliatelle