Reputation: 31898
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?
Upvotes: 5
Views: 303
Reputation: 25165
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.
Upvotes: 6