forked from openshift/cluster-logging-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
golangci.yaml
34 lines (33 loc) · 981 Bytes
/
golangci.yaml
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
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- gocyclo
- gofmt
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- nakedret
- nolintlint
- scopelint
- staticcheck
- structcheck
- typecheck
- unconvert
- varcheck
- gocritic
- unused
- misspell
# Consider enabling these, some cleanup required:
# gomnd: An analyzer to detect magic numbers. [fast: true, auto-fix: false]
# stylecheck: Stylecheck is a replacement for golint [fast: true, auto-fix: false]
# whitespace: Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]
# wsl: Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
# dupl: Tool for code clone detection [fast: true, auto-fix: false]
# goimports: Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true, auto-fix: true]