From 313f86ea850c0142df4dbc89898880c448d9048b Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Thu, 19 Dec 2024 14:35:04 -0500 Subject: [PATCH] chore(lint): Update lint config Signed-off-by: Dave Henderson --- .golangci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 375122e..580e86a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,10 +1,6 @@ linters-settings: govet: - check-shadowing: true - enable: - - fieldalignment - golint: - min-confidence: 0 + enable-all: true gocyclo: min-complexity: 10 goconst: @@ -13,7 +9,6 @@ linters-settings: lll: line-length: 140 nolintlint: - allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space) allow-unused: false # report any unused nolint directives require-explanation: false # don't require an explanation for nolint directives require-specific: false # don't require nolint directives to be specific about which linter is being skipped @@ -23,11 +18,11 @@ linters: enable: - asciicheck - bodyclose + - copyloopvar - dogsled - dupl - errcheck - exhaustive - - exportloopref - funlen - gci - gochecknoglobals @@ -41,7 +36,6 @@ linters: - gofumpt - goheader - goimports - - gomnd - gomodguard - goprintffuncname - gosec @@ -50,6 +44,7 @@ linters: - ineffassign - lll - misspell + - mnd - nakedret - nestif - nlreturn