Skip to content

Commit d559d4e

Browse files
authored
Merge pull request #4 from sshaplygin/add-lint
add: lint config
2 parents b6c7d83 + 3f055c2 commit d559d4e

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.golangci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# More info on config here: https://github.com/golangci/golangci-lint#config-file
2+
run:
3+
deadline: 10s
4+
issues-exit-code: 1
5+
tests: true
6+
skip-dirs-use-default: true
7+
skip-dirs:
8+
- bin
9+
- vendor
10+
- tests
11+
12+
output:
13+
format: colored-line-number
14+
print-issued-lines: true
15+
print-linter-name: true
16+
17+
linters-settings:
18+
govet:
19+
check-shadowing: true
20+
golint:
21+
min-confidence: 0
22+
dupl:
23+
threshold: 100
24+
goconst:
25+
min-len: 2
26+
min-occurrences: 2
27+
28+
29+
linters:
30+
disable-all: true
31+
enable:
32+
- unused
33+
- deadcode
34+
- stylecheck
35+
- gosimple
36+
- govet
37+
- errcheck
38+
- deadcode
39+
- structcheck
40+
- varcheck
41+
- ineffassign
42+
- typecheck
43+
- dupl
44+
- goconst
45+
- goimports
46+
- megacheck
47+
- gosec
48+
- gocritic
49+
- staticcheck
50+
51+
issues:
52+
exclude-use-default: false
53+
exclude:
54+
- ST1003
55+
- ST1000

0 commit comments

Comments
 (0)