Different thresholds for same rule #4055
Answered
by
cortinico
damienmiheev
asked this question in
Q&A
-
I'm using Detekt and I need to configure LargeClass rule. I want to set different thresholds for production and test classes. Is it possible to configure it such way? |
Beta Was this translation helpful? Give feedback.
Answered by
cortinico
Aug 19, 2021
Replies: 1 comment
-
I believe not. The closest approximation to this is to enable the rule for production, and filter out your test classes with an You could also create your own |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
schalkms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe not. The closest approximation to this is to enable the rule for production, and filter out your test classes with an
exclude
.You could also create your own
LargeTestClass
rule that delegates toLargeClass
. This will be a fully separated rule so you can configure it separately (and specify also a different exclude).