-
Notifications
You must be signed in to change notification settings - Fork 55
/
.golangci.yaml
41 lines (38 loc) · 938 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
35
36
37
38
39
40
41
# This file contains all available configuration options for golangci-lint.
# The Go Community at GitHub is currently working on a finalized version
# of this configuration file to share with all Hubbers.
run:
tests: true
linters-settings:
staticcheck:
# https://staticcheck.io/docs/options#checks
# Default: ["*"]
checks: ["all", "-SA1019"]
linters:
enable:
- errcheck
- errorlint
- exportloopref
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- staticcheck
- typecheck
- unconvert
- unused
- revive
- reassign
- unparam
disable:
- gochecknoglobals # we allow global variables in packages
- gochecknoinits # we allow inits in packages
- goconst # we allow repeated values to go un-const'd
- lll # we allow any line length