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

Piyush Kukadiya

06/07/2021, 7:22 AM
I have written custom rule and trying to integrate it by following this step https://detekt.github.io/detekt/extensions.html#integrate-your-extension-with-the-detekt-cli and i got below output. Question is how can i confirm that entered command or integration is successful. Command used :
./detekt-cli --plugins /Users/piyush.kukadiya/projects/sample/lint_rules_detekt/build/libs/lint_rules_detekt.jar
Thanks
@Michael Marshall Any idea buddy?
m

Michael Marshall

06/07/2021, 7:38 AM
I haven't been using the CLI unfortunately. Have you tried adding a unit test, or purposefully failing the rule with some code?
g

gammax

06/07/2021, 9:36 AM
Are you sure that’s the whole output you get?
If yes, you should check what’s the return code. If it’s 0, then the command is successful. I anyway suggest you to try your rule with some sample code to verify that is actually working fine.
2 Views