forked from gorilla/mux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
40 lines (36 loc) · 822 Bytes
/
.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
run:
concurrency: 4
timeout: 5m
issues-exit-code: 1
tests: false
skip-dirs-use-default: true
# skips vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
# fail when go.mod needs to be updated
modules-download-mode: readonly
allow-parallel-runners: false
# all available settings of specific linters
linters-settings:
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
staticcheck:
# Select the Go version to target. The default is '1.13'.
go: '1.12'
# https://staticcheck.io/docs/options#checks
checks: [all]
linters:
disable-all: true
enable:
- govet
- gosimple
- gochecknoinits
- gosec
- goimports
- asciicheck
- typecheck
- staticcheck
- unused
- forcetypeassert
- misspell
- noctx
fast: false