-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yml
More file actions
49 lines (46 loc) · 893 Bytes
/
Copy path.golangci.yml
File metadata and controls
49 lines (46 loc) · 893 Bytes
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
version: "2"
# Configure which files to skip during linting
run:
tests: false
# Strategy: enable everything, then disable the opinionated, style-only, or
# domain-inappropriate linters. The high-value correctness linters (govet,
# staticcheck, unused, ineffassign, errorlint, revive, ...) stay on. Tune the
# disable list to taste.
linters:
default: all
disable:
- cyclop
- depguard
- err113
- errcheck
- exhaustruct
- funlen
- gochecknoglobals
- gocognit
- gocritic
- gocyclo
- goconst
- gosec
- ireturn
- lll
- mnd
- modernize
- musttag
- nestif
- nilerr
- nlreturn
- noinlineerr
- nonamedreturns
- paralleltest
- varnamelen
- wrapcheck
- wsl
- wsl_v5
- gomodguard
- forbidigo
- gochecknoinits
- tagliatelle
formatters:
enable:
- gofmt
- goimports