From e06a9a2666156c958f368cc46d1c8a38f40b481f Mon Sep 17 00:00:00 2001 From: marco Date: Tue, 30 Apr 2024 09:25:18 +0200 Subject: [PATCH] enable some revive checks --- .golangci.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 57e3255ba..6b8cc2846 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -138,7 +138,7 @@ linters-settings: - name: comment-spacings disabled: true - name: confusing-naming - disabled: true + disabled: false - name: confusing-results disabled: true - name: context-as-argument @@ -188,7 +188,7 @@ linters-settings: - name: modifies-parameter disabled: true - name: modifies-value-receiver - disabled: true + disabled: false - name: optimize-operands-order disabled: true - name: nested-structs @@ -196,7 +196,7 @@ linters-settings: - name: package-comments disabled: true - name: range-val-address - disabled: true + disabled: false - name: redundant-import-alias disabled: true - name: struct-tag @@ -498,3 +498,24 @@ issues: - linters: - nonamedreturns text: "named return .* with type .* found" + + - linters: + - revive + path: pkg/leakybucket/manager_load.go + text: "confusing-naming: Field '.*' differs only by capitalization to other field in the struct type BucketFactory" + + - linters: + - revive + path: pkg/exprhelpers/helpers.go + text: "confusing-naming: Method 'flatten' differs only by capitalization to function 'Flatten' in the same source file" + + - linters: + - revive + path: pkg/appsec/query_utils.go + text: "confusing-naming: Method 'parseQuery' differs only by capitalization to function 'ParseQuery' in the same source file" + + - linters: + - revive + path: pkg/acquisition/modules/loki/internal/lokiclient/loki_client.go + text: "confusing-naming: Method 'QueryRange' differs only by capitalization to method 'queryRange' in the same source file" +