forked from ava-labs/coreth
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.golangci.yml
More file actions
44 lines (40 loc) · 964 Bytes
/
.golangci.yml
File metadata and controls
44 lines (40 loc) · 964 Bytes
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
# This file configures github.com/golangci/golangci-lint.
run:
timeout: 10m
tests: true
linters:
disable-all: true
enable:
- goimports
- gosimple
- govet
- ineffassign
- misspell
- unconvert
- typecheck
- unused
# - staticcheck
- bidichk
- durationcheck
- copyloopvar
- whitespace
# - revive # only certain checks enabled
- durationcheck
- gocheckcompilerdirectives
- reassign
- mirror
- tenv
linters-settings:
gofmt:
simplify: true
goconst:
min-len: 3 # minimum length of string constant
min-occurrences: 6 # minimum number of occurrences
ignore-tests: true
issues:
exclude-rules:
# Exclude unused geth symbols from ethclient/ethclient.go to simplify upgrading Geth to a newer version.
- path: "ethclient\\/ethclient\\.go"
text: "(type `rpcProgress`|func `\\(\\*rpcProgress\\)\\.toSyncProgress`) is unused"
linters:
- unused