-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
50 lines (41 loc) · 1.06 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
run:
skip-dirs:
- pkg/devto
linters:
enable-all: true
issues:
exclude-rules:
- path: _test\.go
linters:
- scopelint
text: Using the variable on range scope `(tc|tt)` in function literal
# Usually we have table driven tests which make the test function too long.
- path: _test\.go
linters:
- funlen
text: Function '.+' is too long
- path: cmd.go
linters:
- gomnd
text: "Magic number: \\d+, in <argument> detected"
# Closed in github.com/shihanng/devto/pkg/devto
- path: pkg/article/client.go
linters:
- bodyclose
text: "response body must be closed"
# Generated in github.com/shihanng/devto/pkg/devto
- path: pkg/article/client.go
linters:
- lll
text: "line is 121 characters"
- path: _test\.go
linters:
- gomnd
- path: cmd/cmd.go
linters:
- funlen
text: "Function 'New' is too long"
- path: main.go
linters:
- gomnd
text: "mnd: Magic number: 1, in <argument> detected"