forked from 0xPolygon/pbft-consensus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
55 lines (50 loc) · 1.61 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
run:
timeout: 10m
linters-settings:
dupl:
threshold: 100
goconst:
min-len: 3
min-occurrences: 3
govet:
check-shadowing: true
lll:
line-length: 300
misspell:
locale: US
service:
golangci-lint-version: 1.45.0
linters:
disable-all: true
enable:
- govet # Suspicious constructs
- errcheck # Unchecked errors
- staticcheck # Static analysis checks
- gosimple # Simplify a code
- structcheck # Unused struct fields
- varcheck # Unused global variables and constants
- ineffassign # Unused assignments to existing variables
- deadcode # Unused code
- typecheck # Parses and type-checks Go code
- rowserrcheck # database/sql.Rows.Err() checked
- unconvert # Unnecessary type conversions
- goconst # Repeated strings that could be replaced by a constant
- gofmt # Whether the code was gofmt-ed
- goimports # Unused imports
- misspell # Misspelled English words in comments
- lll # Long lines
- unparam # Unused function parameters
- nakedret # Naked returns in functions greater than a specified function length (?)
- exportloopref # Unpinned variables in go programs
- nolintlint # Ill-formed or insufficient nolint directives
- depguard # Package imports are in a list of acceptable packages
- gosec # Security problems
- unused # Unused constants, variables, functions
- goprintffuncname # Printf-like functions are named with f at the end
- exportloopref # Exporting pointers for loop variables
- dupl # Code clone detection
issues:
exclude-rules:
- path: _test\.go
linters:
- gosec