开发者

How can I get the Agent Smith ReSharper plugin to recognize that Status is not plural

开发者 https://www.devze.com 2023-01-13 12:45 出处:网络
When using the Agent Smith plugin for ReSharper, I get 开发者_高级运维the warning \"Enums that are not flags should not have plural names\" for an enum that ends in Status. For example:

When using the Agent Smith plugin for ReSharper, I get 开发者_高级运维the warning "Enums that are not flags should not have plural names" for an enum that ends in Status. For example:

public enum SomeStatus
{
    Success,
    Failed
}

In fact Status is not plural, so this isn't really in violation of the naming rule. I found this ticket from 2008 bringing up the issue, but it doesn't look like it has been fixed.

Is there any clever way to work around this (e.g. some kind of custom configurable regex)?

0

精彩评论

暂无评论...
验证码 换一张
取 消