Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intelliJ code-inspection standalone using Java

Is there a way to run code inspection provided by intelliJ-JetBrains using the java code.

Basically, can I import the intelliJ engine Or factory from plugins of a community edition to create a project on my own to inspect a piece of code?

I have tried seeking any such dependency but to no use. Creating a jar of plugins was another failed attempt.

Edit - As answered by @Frankie and mentioned in the comments thereafter by me. Is there a way of not being dependent on IntelliJ as a whole but use just the inspect library?

like image 890
Naman Avatar asked Jul 22 '16 03:07

Naman


People also ask

Is IntelliJ IDEA just for Java?

Though designed primarily for Java development, IntelliJ IDEA understands many other programming languages, including Groovy, Kotlin, Scala, JavaScript, TypeScript, and SQL, and it provides smart coding assistance for each of them.


1 Answers

IntelliJ provides code inspection from the command line.

As per the manual simply run:

<path-to-IntelliJ>\bin\inspect.sh <path-to-project> <path-to-inspection-profile>

From there it should be straightforward to apply to your desired case scenario.

like image 65
Frankie Avatar answered Oct 16 '22 22:10

Frankie