开发者

Disabling specific Resharper rules for specific files

Is there a way to tell Resharper to ignore/suppress specific rules (say, method naming) in specific files on开发者_开发百科ly? This could be useful for tests and other cases where you have good reason for breaking naming conventions (like ICD compatibility, in my case)

Aside of suppressing them with comments of course, which would clutter the code


You don't need to put comments around each method with incorrect naming. You can put just one comment at the beginning of the file. It won't clutter the code. Like this:

using ...
using ...

// ReSharper disable ...
namespace ...
{
    ...
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜