From 06b7700bc97a615578b7612f9da0a03f537caeec Mon Sep 17 00:00:00 2001 From: Pierre Gimalac Date: Fri, 2 Aug 2024 15:48:28 +0200 Subject: [PATCH] chore(revive): allow unused variables starting with _ --- .golangci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index ceb5c2eaa7481..bab0ff79e25da 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,12 +5,12 @@ issues: # Do not limit the number of times a same issue is reported. max-same-issues: 0 - + exclude-files: - pkg/util/cloudproviders/cloudfoundry/bbscache_test.go # implements interface from imported package whose method names fail linting - pkg/util/intern/string.go # TODO: fix govet 'unsafeptr' error - pkg/serverless/trace/inferredspan/constants.go # TODO: fox revive exported const error - + exclude-dirs: - pkg/proto/patches - tasks/unit_tests/testdata/components_src @@ -149,6 +149,8 @@ linters-settings: - name: unexported-return - name: unreachable-code - name: unused-parameter + arguments: + - allowRegex: "^_" - name: var-declaration - name: var-naming # non-default rules: