-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.golangci.yml
38 lines (37 loc) · 1.18 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
# https://github.com/golangci/golangci-lint/blob/78a738f7cbcedac710e8de83e10cbf5721061114/.golangci.reference.yml#L2687
linters:
# Enable all available linters.
# Default: false
enable-all: true
# Disable specific linter
# https://golangci-lint.run/usage/linters/#disabled-by-default
disable:
- depguard
- exhaustruct
- gocognit
- gocyclo
- godot
- godox
- gofumpt
- goheader
- goimports
- gomodguard
- goprintffuncname
- mnd
- nestif
- nlreturn
- paralleltest
- testpackage
- varnamelen
- wsl
# https://github.com/golangci/golangci-lint/blob/78a738f7cbcedac710e8de83e10cbf5721061114/.golangci.reference.yml#L2801-L2811
- execinquery # Deprecated
- gomnd # Deprecated
issues:
# List of regexps of issue texts to exclude, empty list by default.
# But independently from this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`
exclude:
- Using the variable on range scope `tt` in function literal
- "var-naming: don't use underscores in Go names; method IO_ should be IO"