为什么此订单项 StyleCop 抑制不起作用?
我有以下内容,我收集的内容应该在特定代码行上禁用 stylecop 规则。
[SuppressMessage("Microsoft.StyleCop.CSharp.DocumentationRules",
"SA1300:ElementMustBeginWithUpperCaseLetter",
Justification = "External API, no control")]
public void receivedEvent(NV.nConsumeEvent evt)
{
}
但没有任何效果,警告不断显示。怎么了?
I have the following, which I gather should disable a stylecop rule on a partiular line of code.
[SuppressMessage("Microsoft.StyleCop.CSharp.DocumentationRules",
"SA1300:ElementMustBeginWithUpperCaseLetter",
Justification = "External API, no control")]
public void receivedEvent(NV.nConsumeEvent evt)
{
}
But it has no effect, the warning keeps showing. What's wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来SA1300属于NamingRules,而不属于DocumentationRules。
因此,正确的抑制是:
It seems that SA1300 belongs to NamingRules, not to the DocumentationRules.
So, the correct suppressing would be: