-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy path.golangci.yml
90 lines (87 loc) · 1.44 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# TODO(edenfed): Commented out linters are good and we should enable them in the future.
# Let's enable them one by one and fix the issues they find.
run:
concurrency: 4
timeout: 2m
tests: false
linters:
disable-all: true
enable:
- nilerr
- nilnesserr
# - nilnil
- bodyclose
- dogsled
- dupl
- noctx
- errcheck
- funlen
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
# - revive
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- staticcheck
# - stylecheck
- typecheck
- unconvert
- unparam
- whitespace
- unused
linters-settings:
dupl:
threshold: 200
goconst:
min-len: 6
min-occurrences: 3
misspell:
locale: US
lll:
line-length: 150
goimports:
local-prefixes: github.com/odigos-io
gocritic:
settings:
hugeParam:
sizeThreshold: 100
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- ifElseChain
- unnamedResult
- paramTypeCombine
funlen:
lines: 110
statements: 60
whitespace:
multi-if: false
multi-func: false
gosec:
includes:
- G401
- G306
- G110
- G111
- G114
- G112
excludes:
- G204
- G101
issues:
exclude-rules:
- path: _test\.go
linters:
- unparam
- funlen