I am missing the gradle tasks `detektIdeaInspect` ...
# detekt
h
I am missing the gradle tasks
detektIdeaInspect
and
detektIdeaFormat
which are mentioned here: https://detekt.github.io/detekt/gradle.html#available-plugin-tasks Also I am also not able to include an
idea { }
configuration into my detekt block. It cannot be resolved. What am I missing? I would like to check if my code is formatted according to the android studio code style via gradle.
c
This is actually the first time I knew about these two tasks. The documentation seems outdated
h
Yeah I think you are right, most examples I have found configuring the the tasks via the
idea { }
block are from 2019. Do you know how I could check for correct formatting using the intellij/android studion code-style.xml? If I understand correctly most folks are using ktlint but it is using it's own style which cannot be configured?!
b
I remember idea asking me if I want to install a script to run those checks on the shell. So it should be doable. But I don't know exactly how.
👍 1
h
b
PR to fix the documentation: https://github.com/detekt/detekt/pull/3636 thanks for bring it up this issue 🙂
👏 1