-
Notifications
You must be signed in to change notification settings - Fork 179
/
.golangci.yml
45 lines (40 loc) · 1008 Bytes
/
.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
run:
timeout: 10m
linters-settings:
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/onflow/flow-go/
gosec:
# To select a subset of rules to run.
# Available rules: https://github.com/securego/gosec#available-rules
includes:
- G401
- G402
- G501
- G502
- G503
- G505
staticcheck:
# Disable SA1019 to allow use of deprecated label
checks: ["all", "-SA1019"]
linters:
enable:
- goimports
- gosec
issues:
exclude-rules:
- path: _test\.go # disable some linters on test files
linters:
- unused
# typecheck currently not handling the way we do function inheritance well
# disabling for now
- path: 'cmd/access/node_build/*'
linters:
- typecheck
- path: 'cmd/observer/node_builder/*'
linters:
- typecheck
- path: 'follower/*'
linters:
- typecheck