In your case, the correct SuppressMessage attribute should look like this:
[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1202:ElementsMustBeOrderedByAccess")] private void SomeMethod() { }
Please note that you can put it on any other element (for example, on a class - then all such violations in the whole class will be suppressed).
I also agree that it is completely unclear what to write in these fields.
Actually, the first should be the full class name of the StyleCop analyzer and can be found from the source code (for example, from here ), the second should start with the rule code, then with a colon and the rule enumeration name (fortunately, it always looks like the rule name displayed in the parameter editor, but without spaces).
Oleg Shuruev Sep 19 '11 at 18:53 2011-09-19 18:53
source share