-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.golangci.yml
52 lines (46 loc) · 934 Bytes
/
.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
run:
timeout: 3m
gofmt:
simplify: true
revive:
rules:
- name: line-length-limit
arguments: 120
skip-dirs:
- ".*mocks.*"
- vendor
- ".*gen.*"
gofumports:
local-prefixes: "github.com/defer-panic/news-feed-bot"
output:
sort-results: true
issues:
exclude-use-default: true
fix: false
exclude-rules:
- linters:
- revive
text: 'should not use basic type string as key in context.WithValue'
- linters:
- revive
text: "don't use an underscore in package name"
- linters:
- staticcheck
text: 'SA1029:' # the same as revive's rule about string as a key in context.WithValue
- linters:
- revive
text: "comment on exported var"
linters:
enable:
- revive
- gofmt
- gosimple
- misspell
- goimports
- godot
- cyclop
- gocognit
- gocritic
- prealloc
- wsl
- goconst