Did we just completely deprecate this article? <ht...
# detekt
v
Did we just completely deprecate this article? https://medium.com/@acerezoluna/detekt-in-2018-5f9b898c12d8 (with the new gradle plugin re-write)
m
Not yet as there is no real release with the Gradle Plugin changes yet. But yes, pretty much... Saw it as well in the Kotlin Weekly email 😕
Looking at it again it's not that bad actually. In the article you'd only need to remove 2 lines of code to make it work with the new Gradle plugin as the
profile
APIs have been removed
And optionally replace
detektCheck
with simply running
detekt
v
Okay then it's not as bad
t
@mauin is there any plan to support per-sourceset/per-variant tasks (like all other static analysis plugins do) or was it a choice to have a single Detekt task ?
m
We initially had one task per source set as that came for free with the internal Gradle classes we were initially using. But we moved away from those classes and now have one single task. We can add per source set tasks though.