-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
57 lines (57 loc) · 1.21 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Options for analysis running.
linters:
# Disable specific linter
# https://golangci-lint.run/usage/linters/#disabled-by-default-linters--e--enable
disable:
# here some dropped deprecated checks
# reduce warning messages
- mnd
# here some custom dropped checks temporary disabled
# they will be enabled
- depguard
- exhaustruct
- exportloopref
- forbidigo
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- gofumpt
- ireturn
- typecheck
- wrapcheck
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
enable-all: true
linters-settings:
cyclop:
max-complexity: 15
dupl:
threshold: 100
funlen:
lines: -1
statements: 50
goconst:
min-len: 2
min-occurrences: 3
gocritic:
disabled-checks:
- dupImport
- ifElseChain
- octalLiteral
- whyNoLint
- unnamedResult
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
gofmt:
rewrite-rules:
- pattern: interface{}
replacement: any
goimports:
local-prefixes: github.com/golangci/golangci-lint
run:
timeout: 5m