https://kotlinlang.org logo
#detekt
Title
l

Lucas Mo

07/21/2022, 8:44 PM
I'm having a bit of a hard time replacing the deprecated "failFast" flag for the gradle alternative
b

Brais Gabin

07/22/2022, 1:06 PM
Fail fast was deprecated in the gradle task too on
1.16.0
. What do you want to archive exactly?
l

Lucas Mo

07/22/2022, 1:21 PM
my project had failFast set to true before, so, I should keep this flag, but now using the Gradle extension, right? Anyway, I was able to apply it as a CLI parameter. Thanks!
👍 1
b

Brais Gabin

07/22/2022, 1:30 PM
Well, we deprecated that flag for a reason: the name is REALLY bad. Now you can get the same behaviour but with arguments with better names as
allRules
.
l

Lucas Mo

07/22/2022, 9:19 PM
Hm, interesting
Where can I read about this "allRules" thing?
I'm still trying to find my way across the documentation
The old
FailFast
is the same as enable
buildUponDefaultConfig
and
allRules
.
l

Lucas Mo

07/25/2022, 6:29 PM
So, if I got it right, I just need to set those flags as true in a detekt DSL block, and it will work the same as failFast?
Nice
Thank you so much for your support!
22 Views