Replies: 1 comment
-
|
Better to do new check creation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed #15052 discussing restricting the number yield tokens in a switch case.
I want to restrict the body of every switch case, no matter the token (could be lines or tokens).
There is no existing rule in https://checkstyle.sourceforge.io/checks/sizes/index.html
I see the https://checkstyle.sourceforge.io/checks/misc/descendanttoken.html#DescendantToken
rule could allow me to restrict the tokens.
If I use DescendantToken rule then I would need to configure ALL/ANY token to count.
How would I do this? Or is it better to create a new rule for case length?
Beta Was this translation helpful? Give feedback.
All reactions