Hi all, with konsist is there a way to check unuse...
# konsist
t
Hi all, with konsist is there a way to check unused imports ?
p
I think this is not the use-case of Konsist. Detekt has a rule for checking this.
t
I have not used detekt, can I as well write tests with detekt?
I just checked it it's a linter, Thank you!!
p
Detekt has a different approach and verifies your code against a set of rules during the build process. In case of unused imports a violation is reported and the build fails.
t
Thank you! I will set it up
m
You might also find the Spotless gradle plugin valuable for this: it can be configured to remove unused imports, among other helpful code-formatting-type behaviors
👀 1