IntelliJ code verification using Java

Is there a way to perform the code check provided by intelliJ-JetBrains using Java code.

Basically, can I import an intelliJ engine Or factory from community plugins to create a project to independently check a piece of code?

I tried looking for any such dependency, but to no avail. Another unsuccessful attempt to create a jar of plugins.

Change As @Frankie replied, and after that I mentioned in the comments. Is there a way not to depend on IntelliJ as a whole, but to use only the inspect library?

+6
source share
1 answer

IntelliJ provides code verification from the command line .

As in the manual, just run:

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

From there, it should be easy to apply to your desired scenario.

+6
source

All Articles