forked from matoous/godox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
71 lines (64 loc) · 1.69 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
linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages:
# we are using "github.com/json-iterator/go" instead of json encoder from stdlib
- "encoding/json"
dupl:
threshold: 100
gocritic:
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint` run to see all tags and checks.
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
enabled-tags:
- performance
- diagnostic
- style
disabled-checks:
- emptyStringTest
- unnamedResult # it is experimental currently and doesn't handle typed channels correctly
gocyclo:
min-complexity: 14 # TODO go lower
golint:
min-confidence: 0
govet:
check-shadowing: true
goconst:
min-len: 2
min-occurrences: 3
goimports:
local-prefixes: gitlab.skypicker.com/search-team/gonuts/conveyance-store
lll:
line-length: 140
maligned:
suggest-new: true
misspell:
locale: US
linters:
enable-all: true
disable:
# prealloc is not recommended by `golangci-lint` developers.
- prealloc
- gochecknoglobals
issues:
exclude-rules:
- path: _test\.go
linters:
- goconst
- dupl
- path: fixtures
linters:
- gocritic
- varcheck
- deadcode
- unused
run:
modules-download-mode: readonly
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: tab
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true