I have a specific set of problems that R# constantly reminds me of currently, and I'd like to teach it how to ignore those inspections in a very specific case.
I'm really getting into using the FubuMVC framework. Razor support was added earlier this year, and that is great. However, R# complains about 2 things in my FubuMVC Razor views.
- R# tells me that my @model declaration has a redundant qualifier because I'm importing the same namespace the model is in above it. For example, the following snippet should explain the situation:
- R# also informs me that it cannot resolve any of my Razor view's sections (e.g., @section Title).
Both of the above inspections are correct, strictly speaking. FubuMVC requires that the @model be fully qualified; regardless of any @using for the same namespace. R# also does not know how to resolve the master Razor template for my views, because FubuMVC uses a convention that looks for the master template at ~/Shared/Application.cshtml. So, R# does not know about this convention in order to understand that there actually is a section defined. I don't expect R# to work differently, out of the box.
However, I fully expect that I can write some exception to these inspections (i.e., ignore them both) when my project contains a reference to FubuMVC. I'm guessing I would need to write a plugin to handle such scenarios; is that correct?
Can anyone point me in the right direction for getting started with such a task? The documentation for the plugin SDK is lengthy, and a nudge in the right direction would be much appreciated. What interface(s) should I implement to get the functionality I'm after? How can I override normal inspection behavior? How can do so if the project references a particular assembly?
I plan on sharing any outcome plugin with the FubuMVC community, and the entire code with the R# community.
Thanks in advance,