Inspection 'Redundant name qualifier' (C#) and StyleCop rule SA1126

Hi,

(Reference: http://stylecop.codeplex.com/discussions/357597)

Recently the Stylecop project updated rule SA1126 to flag calls to static base class methods which did not have the name of the base class before the method call.

ie. StaticMethod() should be BaseClass.StaticMethod().

The problem is that this is then flagged as a redundant name qualifier with R#. Unfortunately, the scope of the 'Redundant name qualifier' inspection in R# is such that if it is disabled, a whole host of actual redunant name qualifiers will not be picked up.


Is it possible to have this inspection extended, to ignore the class name qualifier for static methods that are not in the current class?

2 comments
Comment actions Permalink

Looks like you need ReSharper forum, this one is for IntelliJ IDEA.

0
Comment actions Permalink

My apologies, not sure how I failed to notice I was in here.

Thanks.

0

Please sign in to leave a comment.