From ce254657cbb72b38f1e71c3932372fe988e84ad9 Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Wed, 10 Jul 2024 16:38:07 -0700 Subject: [PATCH] adapt settings to golangci-lint 1.59.1 (#55) * adapt settings to golangci-lint 1.59.1 * review comment --- golangci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/golangci.yml b/golangci.yml index 6a3a455..8342a4a 100644 --- a/golangci.yml +++ b/golangci.yml @@ -58,6 +58,7 @@ linters-settings: max-func-lines: 30 nolintlint: require-specific: true + # require-explanation: true # add this when we fix it/review nolints in fortio/fortio whitespace: multi-if: false # Enforces newlines (or comments) after every multi-line if statement multi-func: false # Enforces newlines (or comments) after every multi-line function signature @@ -73,6 +74,9 @@ linters: - musttag # Deprecated ones: - gomnd + - execinquery + # Redundant ones: + - gofmt # we use gofumpt # Weird/bad ones: - wsl - nlreturn @@ -81,7 +85,6 @@ linters: - mnd - testpackage - wrapcheck - - exhaustivestruct - tagliatelle - nonamedreturns - varnamelen @@ -90,7 +93,6 @@ linters: - paralleltest - thelper - forbidigo - - ifshort - wastedassign - cyclop - forcetypeassert