golangci-lint: enable misspell, tweak configuration
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c9553897f3
commit
f41712c4be
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,7 @@ linters:
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
|
- misspell
|
||||||
- unconvert
|
- unconvert
|
||||||
|
|
||||||
disable:
|
disable:
|
||||||
|
@ -33,6 +34,12 @@ linters-settings:
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
|
# Exclude some linters from running on tests files.
|
||||||
|
- path: _test\.go
|
||||||
|
linters:
|
||||||
|
- errcheck
|
||||||
|
- gosec
|
||||||
|
|
||||||
- text: "G201: SQL string formatting"
|
- text: "G201: SQL string formatting"
|
||||||
linters:
|
linters:
|
||||||
- gosec
|
- gosec
|
||||||
|
|
Loading…
Add table
Reference in a new issue