How to create custom code inspections using Webstorm? Follow
I found this page: http://www.jetbrains.com/idea/documentation/static_code_analysis.html and on that page the section titled "Creating your own inspections".
Am I missing something or is the feature just not there in Webstorm and only available in IntelliJ?
We have some specific requirements of syntax and whatnot (specifically using sails.js) and these pieces of code keep getting highlighted as invalid.
I understand it's possible to exclude code from being inspected, however I don't want to do that. I'd like to properly inspect it and not ignore it.
Thanks for your time!
-Troy
Please sign in to leave a comment.
Hello!
Structural Search (and the corresponding inspection) is not currently available in WebStorm (please vote for http://youtrack.jetbrains.com/issue/WEB-6191 to have it included). But for both Idea and WebStorm the preferrable way for creating custom inspections is developing your own plugin. See http://confluence.jetbrains.com/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA#DevelopingCustomLanguagePluginsforIntelliJIDEA-CodeInspectionsandIntentions, https://github.com/JetBrains/intellij-community/blob/master/plugins/properties/src/com/intellij/lang/properties/TrailingSpacesInPropertyInspection.java
See also http://confluence.jetbrains.com/display/IDEADEV/PluginDevelopment, http://devnet.jetbrains.com/community/idea/open_api_and_plugin_development?view=discussions