Use Inspect Feature to Analyze Custom language
Answered
Currently a proprietary language doesn’t have static code analysis in-built plugin in Sonar or Codenarc.
We are using Intellij in our project, I’m planning to add custom “inspect code” for this language to get real-time feedback as developer writes code.
Is that possible to use inspect feature as static code analysis like Sonar or Codenarc?
Please sign in to leave a comment.
Yes, if you implement your own language plug-in with the inspections you can run them either on the fly or via the menu action on multiple files/folders.
Thank you, Serge. This language is similar to Java and Javascript, is that possible to use any existing plug-ins?
Could you please refer any materials to write own language plug-in?
Please see http://www.jetbrains.org/intellij/sdk/docs/reference_guide/custom_language_support.html.
Thank you very much!
We are already using IntelliJ IDE for this custom language - GOSU. It does have default inspections, we would like to customize or add more search templates.
Do we still need to implement the language plug-in? Or just customize the existing inspection profile for our requirements?
Could you please also share the documentation to customize the existing inspection profile?
Found the below link, looks like it is old.
https://www.jetbrains.com/idea/docs/StaticCodeAnalysis.pdf
Are you referring to https://plugins.jetbrains.com/plugin/7140-os-gosu plug-in?
You can either fork it or contact the plug-in maintainer to ask the inspections you need.
Yes, That's correct.
Thank you, Serge.