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


(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?

1 comment

Please sign in to leave a comment.