-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.golangci.yaml
73 lines (70 loc) · 1.2 KB
/
.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
run:
go: '1.23'
skip-dirs:
- vendor
- bin
- var
- tmp
- gotocjson
- libtransit
- deprecated
- connectors/nsca
skip-files:
- \.pb\.go$
modules-download-mode: readonly
govet:
enable:
- fieldalignment
linters:
disable-all: false
enable:
- bodyclose
- dogsled
- dupl
- errcheck
- goconst
- gofmt
- goimports
- govet
- ineffassign
- misspell
- prealloc
- staticcheck
- stylecheck
- unconvert
# TODO: - unparam
- unused
- whitespace
# TODO: - gocognit
# TODO: - gocyclo
disable:
- depguard
- gochecknoglobals
- gochecknoinits
- godox
- lll
- nakedret
- wsl
- gosimple
- gosec
- funlen
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: _test\.go
linters:
- gomnd
- funlen
- scopelint
- dupl
- gocognit
- path: _tst\.go
linters:
- dupl
- goconst
- govet
exclude:
- "not declared by package utf8"
- "unicode/utf8/utf8.go"
- "DecodeRuneInString not declared by package utf8"
- ".*and that stutters.*"