enable some revive checks
This commit is contained in:
parent
c2d542983e
commit
e06a9a2666
|
@ -138,7 +138,7 @@ linters-settings:
|
||||||
- name: comment-spacings
|
- name: comment-spacings
|
||||||
disabled: true
|
disabled: true
|
||||||
- name: confusing-naming
|
- name: confusing-naming
|
||||||
disabled: true
|
disabled: false
|
||||||
- name: confusing-results
|
- name: confusing-results
|
||||||
disabled: true
|
disabled: true
|
||||||
- name: context-as-argument
|
- name: context-as-argument
|
||||||
|
@ -188,7 +188,7 @@ linters-settings:
|
||||||
- name: modifies-parameter
|
- name: modifies-parameter
|
||||||
disabled: true
|
disabled: true
|
||||||
- name: modifies-value-receiver
|
- name: modifies-value-receiver
|
||||||
disabled: true
|
disabled: false
|
||||||
- name: optimize-operands-order
|
- name: optimize-operands-order
|
||||||
disabled: true
|
disabled: true
|
||||||
- name: nested-structs
|
- name: nested-structs
|
||||||
|
@ -196,7 +196,7 @@ linters-settings:
|
||||||
- name: package-comments
|
- name: package-comments
|
||||||
disabled: true
|
disabled: true
|
||||||
- name: range-val-address
|
- name: range-val-address
|
||||||
disabled: true
|
disabled: false
|
||||||
- name: redundant-import-alias
|
- name: redundant-import-alias
|
||||||
disabled: true
|
disabled: true
|
||||||
- name: struct-tag
|
- name: struct-tag
|
||||||
|
@ -498,3 +498,24 @@ issues:
|
||||||
- linters:
|
- linters:
|
||||||
- nonamedreturns
|
- nonamedreturns
|
||||||
text: "named return .* with type .* found"
|
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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue