开发者

Disabling specific Resharper rules for specific files

开发者 https://www.devze.com 2023-01-21 17:01 出处:网络
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

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

精彩评论

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