You can suppress custom rule violations using SuppressMessageAttribute, just as you do for rules that are sent as part of StyleCop. eg:.
[SuppressMessage("Your.Analyzer.Namespace", "AA1000:RuleName")]
(where the namespace, rule identifier, and rule name should be replaced with the actual values ββfor the rule)
source
share