-
Notifications
You must be signed in to change notification settings - Fork 15
/
.golangci.yml
85 lines (70 loc) · 1.75 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
linters-settings:
custom:
noprint:
type: module
nodebug:
type: module
rangevarref:
type: module
goheader:
values:
const:
AUTHOR: The Accumulate Authors
template: |-
Copyright {{ YEAR }} {{ AUTHOR }}
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
linters:
disable-all: true
enable:
# Custom
- noprint # Use forbidigo instead?
- nodebug
- rangevarref
# Standard
- asasalint # Bugs (variadic functions taking any)
- bidichk # Check for questionable Unicode
- exportloopref # Smarter version of rangevarref?
- goheader # Enforce the copyright header
- misspell # Spelling
- nakedret # Not really sure what this one does
- unconvert # Lint (unnecessary conversions)
# TODO Enable at some point
# - maintidx # Maintainability
# Gosec panics on some of the generic code
# - gosec # Security
# - nilerr # Bugs (error checking)
# Defaults
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# - nestif # I'd like to enable this but I don't want to deal with the issues yet
# - godox # Enable to find TODO/BUG/FIXME
issues:
max-same-issues: 0
exclude-rules:
- path: cmd|test/cmd
linters:
- noprint
- path: ^test/e2e2/generated
linters:
- goheader
- path: ^test/|.*_test\.go
linters:
- noprint
- gosec
- path: smt/.*/RandHash\.go
linters:
- noprint
- path: _gen.go$
linters:
- goheader
- gosimple
- path: ^(test/util/goroutine_leaks\.go|exp/tendermint/http\.go|exp/telemetry/translate\.go)$
linters:
- goheader