-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.golangci.yml
71 lines (71 loc) · 1.62 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
linters-settings:
stylecheck:
# STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
checks: ["all", "-ST1000"]
depguard:
rules:
main:
deny:
- pkg: "github.com/davecgh/go-spew/spew"
desc: "only used for debugging"
- pkg: "github.com/c2fo/testify"
desc: "wrong testify package"
misspell:
locale: US
gci:
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- localmodule # Local module section: contains all local packages. This section is not present unless explicitly enabled.
linters:
disable-all: true
enable:
- asasalint
- asciicheck
- bidichk
- depguard
- errcheck
- errchkjson
- errorlint
- exhaustive
- fatcontext
- gci
- gocritic
- godox
- gofmt
- gofumpt
- goimports
- gosec
- govet
- ineffassign
- misspell
- nolintlint
- predeclared
- reassign
- sloglint
- staticcheck
- stylecheck
- unparam
- unused
- usestdlibvars
- wastedassign
- whitespace
- wsl
issues:
exclude-use-default: false
exclude-rules:
- path: '(testing.go)|((.+)_test\.go)'
linters:
- errcheck
- gosec
- text: "Error return value of `.*\\.Close` is not checked"
linters:
- errcheck
- text: G104
linters:
- gosec
# Ensure that we can see all issues at once.
max-issues-per-linter: 0
max-same-issues: 0
# vim: set sw=2 ts=2 et: