chore(linters): Enable `max-public-structs` rule for revive (#15895)
This commit is contained in:
parent
336a5e215b
commit
7212b61389
|
|
@ -272,6 +272,9 @@ linters-settings:
|
|||
- name: import-shadowing
|
||||
- name: increment-decrement
|
||||
- name: indent-error-flow
|
||||
- name: max-public-structs
|
||||
exclude: ["TEST"]
|
||||
arguments: [5]
|
||||
- name: modifies-parameter
|
||||
- name: modifies-value-receiver
|
||||
- name: optimize-operands-order
|
||||
|
|
@ -367,6 +370,9 @@ issues:
|
|||
- path: _test\.go
|
||||
text: "Use of weak random number generator" #gosec:G404
|
||||
|
||||
- path-except: ^plugins/(aggregators|inputs|outputs|parsers|processors|serializers)/...
|
||||
text: "max-public-structs: you have exceeded the maximum number of public struct declarations" #revive:max-public-structs
|
||||
|
||||
# Independently of option `exclude` we use default exclude patterns,
|
||||
# it can be disabled by this option.
|
||||
# To list all excluded by default patterns execute `golangci-lint run --help`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue