enable some revive checks

This commit is contained in:
marco 2024-04-30 09:25:18 +02:00
parent c2d542983e
commit e06a9a2666

View file

@ -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"