is there a way to do a `try-catch` on the `detekt`...
# detekt
p
is there a way to do a
try-catch
on the
detekt
task in order to continue the execution of other tasks?
m
You can set up the thresholds in the config to never fail the detekt task and only report the issues.
p
That would require different config probably for the same task, or I would need to create another wrapper task above it
m
So you want to sometimes fail the task if it reports any issues and sometimes you don't?
p
exactly!
because I want to let Danger parse any produced results and on another CI job i dont want that 😛
I have found a workaround though 😛
t
use gradle
--continue
option
if will continue execution even if one task fails
p
I was using it already, but since
detekt
runs a Java command on its own process I think is the reason it did not work
t
hm, strange, for
ktlint
it works 🤔