Adding Inspection Support for developed libraries

Is it possible to extend IntelliJ IDEA's inspection support?  I have numerous libraries that aren't properly supported by the current set of inspectors and I wouldn't mind adding the support myself if I knew how.  Any pointers or tutorials would be greatly appreciated.
  (*Chris*)

3 comments
Comment actions Permalink

Hello Chris,

yes, this is quite possible. Please find the plugin documentation start page here: http://confluence.jetbrains.net/display/IDEADEV/PluginDevelopment. There's a sample inspection project located at community/samples/comparingReferences.

What libraries/inspections do you have in mind?

0
Comment actions Permalink

Thanks, I'll definitely give that a look.  One big one is an open source project I have (Anodyzed Onyx) that provides an advanced formatter that uses an extension of the MessageFormat's format string.  It starts with the same {0} {3,number,integer} style of placeholders, but also allows you to use dot notation like {0.name.lastname} {2.birthdate,date,yyyy-MM-dd} and so on.  It would be nice to have some inspection support that would at least count the parameters and make sure they match the indexed placeholders.  It would be incredibly cool if I could validate that the formatting types were appropriate for the parameter types, and it would be totally amazing if I could validate the dot notation used was actually valid.

I have a couple of other, smaller things I've run into from time to time that would be nice to see if I could fix, but that's definitely the biggie.  Thanks again for the info, I might be back to bug you for more ;)
  (*Chris*)

0
Comment actions Permalink

This should all be possible, you could even add completion for the properties. Please ask further questions in Plugin development forum: http://devnet.jetbrains.net/community/idea/open_api_and_plugin_development

0

Please sign in to leave a comment.