-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
57 lines (57 loc) · 1007 Bytes
/
.golangci.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
run:
tests: true
modules-download-mode: vendor
skip-dirs-use-default: true
# Linter Docs: https://golangci-lint.run/usage/linters/
linters:
enable:
- deadcode
- errcheck
- goconst
- gofumpt
- dupl
- revive
- gosimple
- govet
- ineffassign
- nakedret
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- whitespace
- errorlint
- gocognit
- gocritic
- ifshort
- misspell
- prealloc
- unconvert
- unparam
- wastedassign
- gosec
issues:
exclude-rules:
- path: src/docs/*
linters:
- deadcode
- unused
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
govet:
check-shadowing: true
gci:
local-prefixes: github.com/twoshark/alluvial1-1
gocritic:
enabled-checks:
- nestingReduce
- unnamedResult
- ruleguard
- truncateCmp
gomnd:
settings:
mnd:
ignored-files: config_env.go