-
Notifications
You must be signed in to change notification settings - Fork 72
/
.golangci.yml
36 lines (34 loc) · 1.02 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
run:
modules-download-mode: vendor
tests: true
timeout: 1m
linters:
enable-all: true
disable:
- depguard # enforces that only deps on a whitelist can be used (meant for orgs, not small projects)
- execinquery # deprecated
- exhaustruct
- exportloopref # deprecated
- forbidigo # we need to use fmt.Print*()
- gomnd
- govet # we run the official go vet separately
- nolintlint # we do occasionally need to suppress linter false positives
- nonamedreturns # named returns often help readability
- paralleltest # tests only take 2.5s to run. no need to parallelize
- staticcheck # dominickh doesn't recommend running staticcheck as part of golangci-lint, so we run Real Staticcheck™ separately
- testpackage
- varnamelen # makes bad suggestions
- wsl
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- opinionated
- performance
- style
disabled-checks:
- whyNoLint
gocyclo:
min-complexity: 10
gofumpt:
extra-rules: true