Skip to content

Commit c83f4ab

Browse files
.github: setup ci
1 parent 800a6aa commit c83f4ab

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.golangci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This file configures github.com/golangci/golangci-lint.
2+
3+
run:
4+
timeout: 20m
5+
tests: true
6+
# default is true. Enables skipping of directories:
7+
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
8+
skip-dirs-use-default: true
9+
10+
linters:
11+
disable-all: true
12+
enable:
13+
- goconst
14+
- goimports
15+
- gosimple
16+
- govet
17+
- ineffassign
18+
- misspell
19+
- unconvert
20+
- typecheck
21+
- unused
22+
- staticcheck
23+
- bidichk
24+
- durationcheck
25+
- exportloopref
26+
- whitespace
27+
28+
# - structcheck # lots of false positives
29+
# - errcheck #lot of false positives
30+
# - contextcheck
31+
# - errchkjson # lots of false positives
32+
# - errorlint # this check crashes
33+
# - exhaustive # silly check
34+
# - makezero # false positives
35+
# - nilerr # several intentional
36+
37+
linters-settings:
38+
gofmt:
39+
simplify: true
40+
goconst:
41+
min-len: 3 # minimum length of string constant
42+
min-occurrences: 6 # minimum number of occurrences

0 commit comments

Comments
 (0)