-
String literals as method parameters seem to trigger the LongMethod rule ?
|
Beta Was this translation helpful? Give feedback.
Answered by
cortinico
Aug 19, 2023
Replies: 1 comment
-
Yes they do, we just check the lines of code size of a method to trigger that rule. As for your specific example, you probably want to either:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nanafan93
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes they do, we just check the lines of code size of a method to trigger that rule.
As for your specific example, you probably want to either:
LongMethod
for tests using anexclude
directive in your config fileLongMethod
for tests using theignoreAnnotated
suppressors (see here https://detekt.dev/docs/next/introduction/suppressors/#annotation-suppressor)