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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With