-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
66 lines (55 loc) · 1.24 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
# This file contains all available configuration options for this project.
# options for analysis running
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 3m
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
revive:
rules:
- name: line-length-limit
arguments: 120
gofumports:
local-prefixes: "github.com/tomakado/containers"
output:
sort-results: true
issues:
exclude-use-default: true
fix: false
exclude-rules:
- linters:
- revive
source: '^// \d+(\.\d+)*\.'
- 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:
- revive
text: var-naming
- linters:
- revive
text: dot-imports
linters:
enable:
- revive
- gofmt
- gosimple
- misspell
- goimports
- godot
- cyclop
- gocognit
- gocritic
- prealloc
- wsl
- goconst