tags:

views:

39

answers:

1

Hi I'm new to ReSharper. For those who uses Resharper, is there a way I can add custom code analysis rules?

For example I might have a rule say All private variables should start with letter "m". How can I add this to Resharper so if I violate this, it can shows as a warning or an error?

+2  A: 

You can write your own plugins for ReSharper. Take a look at here:

http://stylecopforresharper.codeplex.com/

This is similar to what you're asking for. It might even do what you want. Not sure since I'm not a big StyleCop user.

Also take a look at the first in my series of blog posts coming on ReSharper plugins:

http://hadihariri.com/blogengine/post/2010/01/12/Writing-plug-ins-for-ReSharper-Part-1-of-Undefined.aspx

Hadi Hariri

related questions