chore(linters): Enable `max-public-structs` rule for revive (#15895)

This commit is contained in:
Paweł Żak 2024-09-16 23:22:27 +02:00 committed by GitHub
parent 336a5e215b
commit 7212b61389
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -272,6 +272,9 @@ linters-settings:
- name: import-shadowing - name: import-shadowing
- name: increment-decrement - name: increment-decrement
- name: indent-error-flow - name: indent-error-flow
- name: max-public-structs
exclude: ["TEST"]
arguments: [5]
- name: modifies-parameter - name: modifies-parameter
- name: modifies-value-receiver - name: modifies-value-receiver
- name: optimize-operands-order - name: optimize-operands-order
@ -367,6 +370,9 @@ issues:
- path: _test\.go - path: _test\.go
text: "Use of weak random number generator" #gosec:G404 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, # Independently of option `exclude` we use default exclude patterns,
# it can be disabled by this option. # it can be disabled by this option.
# To list all excluded by default patterns execute `golangci-lint run --help`. # To list all excluded by default patterns execute `golangci-lint run --help`.