forked from onflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
45 lines (41 loc) · 910 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
linters:
disable-all: true
enable:
- govet
- gosimple
- errcheck
- staticcheck
- structcheck
- varcheck
- ineffassign
- typecheck
- misspell
- maprangecheck
- unused
- deadcode
- exportloopref
- gocritic
- gofmt
- goimports
- unconvert
- nilerr
issues:
exclude-rules:
- path: _test\.go
linters:
- maprangecheck
max-issues-per-linter: 0
max-same-issues: 0
linters-settings:
gocritic:
disabled-checks:
- ifElseChain # style
- singleCaseSwitch # style
- unslice # false positives
- commentFormatting # does not detect commented out code
- exitAfterDefer
custom:
maprangecheck:
path: tools/maprangecheck/maprangecheck.so
description: reports range statements over maps
original-url: github.com/onflow/cadence/tools/maprangecheck