Skip to content

Commit

Permalink
chore(linters): Enable max-public-structs rule for revive (#15895)
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-pawel authored Sep 16, 2024
1 parent 336a5e2 commit 7212b61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit 7212b61

Please sign in to comment.