-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
37 lines (32 loc) · 1.13 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
# all configuration options can be found here: https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
# options for analysis running
run:
skip-files:
- "example_test.go$"
modules-download-mode: readonly
# output configuration options
output:
format: line-number
print-issued-lines: false
# settings of specific linters
linters-settings:
gocognit:
min-complexity: 10
gocyclo:
min-complexity: 10
golint:
min-confidence: 0.85
wsl:
allow-cuddle-declarations: true
# list of enabled or disabled linters
linters:
disable-all: true
presets:
- bugs # bodyclose, errcheck, gosec, govet, scopelint, staticcheck, typecheck
- complexity # gocognit, gocyclo, nakedret
- format # gofmt, goimports
- performance # bodyclose, maligned, prealloc
- style # depguard, dogsled, dupl, funlen, gochecknoglobals, gochecknoinits, goconst, gocritic, godox, golint, gomnd, gosimple, interfacer, lll, misspell, stylecheck, unconvert, whitespace, wsl
- unused # deadcode, ineffassign, structcheck, unparam, unused, varcheck
issues:
exclude-use-default: false