Update linters

This commit is contained in:
Ian Fijolek
2022-12-19 15:34:47 -08:00
parent 88e94642d9
commit 958446050f
2 changed files with 16 additions and 28 deletions
+13 -25
View File
@@ -1,32 +1,22 @@
---
linters:
enable:
- asciicheck
- bodyclose
- dogsled
- dupl
- errname
- errorlint
- exhaustive
- gochecknoinits
- gocognit
- gocritic
- gocyclo
- goerr113
- gofumpt
- goimports
- gomnd
- goprintffuncname
# - gosec
# - ifshort
- interfacer
- maligned
- misspell
- nakedret
- nestif
- nlreturn
- noctx
- unparam
- tagliatelle
- tenv
- testpackage
- thelper
- tparallel
- unconvert
- wrapcheck
- wsl
# - errorlint
disable:
- gochecknoglobals
@@ -34,15 +24,13 @@ linters-settings:
gosec:
excludes:
- G204
# gomnd:
# settings:
# mnd:
# ignored-functions: math.*
tagliatelle:
case:
rules:
yaml: snake
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
- maligned