More golangci-lint config updates

This commit is contained in:
Russ Magee 2022-09-21 00:34:53 -07:00
commit 0f28d2c023
1 changed files with 11 additions and 7 deletions

View File

@ -8,7 +8,7 @@ linters-settings:
packages-with-error-message:
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
dupl:
threshold: 100
threshold: 125
funlen:
lines: 125
statements: 50
@ -21,11 +21,10 @@ linters-settings:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
#- style
#- opinionated
disabled-checks:
- commentFormatting
- dupImport # https://github.com/go-critic/go-critic/issues/845
- ifElseChain
- octalLiteral
@ -35,8 +34,6 @@ linters-settings:
min-complexity: 15
goimports:
local-prefixes: github.com/golangci/golangci-lint
#golint:
# min-confidence: 0
gomnd:
settings:
mnd:
@ -69,12 +66,12 @@ linters:
disable-all: true
enable:
- bodyclose
#- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exhaustive
- exportloopref
- funlen
- gochecknoinits
- goconst
@ -109,15 +106,22 @@ linters:
# don't enable:
# - asciicheck
# - deadcode
# - gochecknoglobals
# - gocognit
# - godot
# - godox
# - goerr113
# - golint
# - interfacer
# - maligned
# - nestif
# - prealloc
## - rowserrcheck
# - scopelint
# - structcheck
# - testpackage
# - varcheck
# - wsl
issues: