문제

I need to suppress unwanted gendarme rules for the whole assembly of my project or even for individual projects. Is there any option available? Thanks in advance.

도움이 되었습니까?

해결책

The easiest way is to create an .ignore file for your project.

E.g. to ignore a specific rule for all assemblies (e.g. a project) you can add the following lines in your ignore file:

R: Gendarme.Rules.Smells.AvoidSwitchStatementsRule
A: *

Here's a link to Gendarme's ignore file used for it's self-check.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top