IntelliJ CLI?

Answered

Good morning,

My team has been working on a plugin to do some code convention checks. Essentially, we added in some errors that popup during IntelliJ compile. We would like the same checks to happen during in our build pipeline. Is there a way to execute an IntelliJ action from the command line? Something like:

"/Applications/IntelliJ IDEA 14.app" -action "check-conventions" myapp.iml

Then IntelliJ would launch in a headless fashion and dump the output to the command line.

thanks,

Jake

2 comments
Comment actions Permalink

It's possible to run inspections via command line, see https://www.jetbrains.com/idea/help/running-inspections-offline.html . Your plug-in can provide additional inspections.

0
Comment actions Permalink

Thanks for the quick response. This is just what I was looking for.

0

Please sign in to leave a comment.