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