I have written custom rule and trying to integrate...
# detekt
p
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
I haven't been using the CLI unfortunately. Have you tried adding a unit test, or purposefully failing the rule with some code?
g
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.