forked from onflow/flow-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
41 lines (37 loc) · 906 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
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
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