This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
.golangci.yml
109 lines (106 loc) · 2.66 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
run:
timeout: 5m
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- containedctx
- depguard
- dogsled
- dupl
- durationcheck
- errcheck
- errname
- errorlint
- exhaustive
- exportloopref
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- gomoddirectives
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- ireturn
- maintidx
- makezero
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- prealloc
- predeclared
- revive
- rowserrcheck
- staticcheck
- stylecheck
- tagliatelle
- tenv
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- whitespace
linters-settings:
funlen:
lines: 100
depguard:
rules:
main:
allow:
- "$gostd"
- github.com/0xProject/rpc-gateway
- github.com/Shopify/toxiproxy
- github.com/ethereum/go-ethereum
- github.com/gorilla/mux
- github.com/pkg/errors
- github.com/prometheus/client_golang
- github.com/stretchr/testify
- github.com/slok/go-http-metrics
- github.com/purini-to/zapmw
- github.com/caitlinelfring/go-env-default
- github.com/go-http-utils/headers
- github.com/carlmjohnson/flowmatic
- github.com/go-chi/httplog/v2
- github.com/go-chi/chi/v5
- github.com/urfave/cli/v2
- github.com/hashicorp/go-multierror
issues:
max-same-issues: 0 # unlimited
max-issues-per-linter: 0 # unlimited
exclude-rules:
- path: test_utils.go
linters:
- dupl # many functions in tests look like duplicates
- funlen # test function can be very long due to test cases
- gochecknoglobals # globals in tests are fine
- gocognit # test functions can be long/complex
- gomnd # there are many magic numbers in tests
- revive # naming ain't eazy
- errcheck
- ineffassign
- path: _test.go
linters:
- dupl # many functions in tests look like duplicates
- funlen # test function can be very long due to test cases
- gochecknoglobals # globals in tests are fine
- gocognit # test functions can be long/complex
- gomnd # there are many magic numbers in tests
- revive # naming ain't eazy
- errcheck
- ineffassign