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

Henning B

03/29/2021, 7:55 PM
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

chao

03/29/2021, 7:57 PM
This is actually the first time I knew about these two tasks. The documentation seems outdated
h

Henning B

03/29/2021, 8:03 PM
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

Brais Gabin

03/30/2021, 7:05 AM
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

Henning B

03/30/2021, 10:23 AM
b

Brais Gabin

03/30/2021, 6:47 PM
PR to fix the documentation: https://github.com/detekt/detekt/pull/3636 thanks for bring it up this issue 🙂
👏 1