Skip to content

Commit da074e2

Browse files
author
Mattia Bertorello
committed
Added linter configurations and disabled all the linters except golint
1 parent ad76022 commit da074e2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.golangci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
linters-settings:
2+
govet:
3+
check-shadowing: true
4+
golint:
5+
min-confidence: 0
6+
gocyclo:
7+
min-complexity: 13 # Should be 10 but was brought to 13 to speed up the development
8+
maligned:
9+
suggest-new: true
10+
dupl:
11+
threshold: 100
12+
goconst:
13+
min-len: 2
14+
min-occurrences: 2
15+
16+
misspell:
17+
locale: US
18+
19+
linters:
20+
enable-all: true
21+
disable:
22+
- deadcode
23+
- dupl
24+
- errcheck
25+
- goconst
26+
- gocyclo
27+
- gofmt
28+
- govet
29+
- ineffassign
30+
- interfacer
31+
- lll
32+
- maligned
33+
- megacheck
34+
- megacheck
35+
- misspell
36+
- nakedret
37+
- prealloc
38+
- unconvert
39+
- unparam
40+
- varcheck

0 commit comments

Comments
 (0)