SA1404 BUG: fires on justification supplied via constant

Nov 26, 2010 at 1:32 AM

SA1404 rule ("A Code Analysis suppression must contain a non-empty justification describing the reason for the suppression.") fires on code alike

  [SuppressMessage("Microsoft.Design""CA1008:EnumsShouldHaveZeroValue",
   Justification = CodeAnalysisConstants.CA1008NoDefaultValue)]
  public enum SomeEnum
  {
    A = 1,
    B = 2
  }

 

 

 

Coordinator
Feb 4, 2011 at 7:58 PM

Please open as a bug.

Feb 5, 2011 at 12:24 PM
Done. http://stylecop.codeplex.com/workitem/6796