c# - How to ignore Stylecop rule SP0100? -
c# - How to ignore Stylecop rule SP0100? -
how suppress style cop rule sp0100?
enumeration item name v2007 doesn't conform specified style: samplename, sample_name.
i tried next http://stackoverflow.com/a/3296152/284795
[suppressmessage("sp0100")] but error
'system.diagnostics.codeanalysis.suppressmessageattribute' not contain constructor takes 1 arguments
are sure have index of name right?
elementsmustbeorderedbyaccess seems rule sa1202
edit:
you should check microsoft documentation rule suppressions, explains constructor syntax.
ok, seems using stylecop+ rule - meaning bit of pain find appropriate suppression data.
i have found info id in source xml file rules, and, if understand correctly, category should set total name of class exposes rule, stylecopplus.stylecopplusrules.
meaning minimal attribute declaration, in case, be:
[suppressmessage("stylecopplus.stylecopplusrules","sp0100:advancednamingrules")] c# .net visual-studio fxcop stylecop
Comments
Post a Comment