Does anyone know the correct way to explicitly indicate which rules the gendarme will use? Or what rules to exclude? I am not very happy to find Mono documentation for an answer.
What I'm trying to do is specify the rules one by one in the rules.xml file of the gendarme as follows:
<rules include="AvoidAssemblyVersionMismatchRule" from="Gendarme.Rules.BadPractice.dll"/>
By doing this, I hope that we can disable the rules that we do not need. The problem is that after defining all the rules in this way, I get a different number of detected defects compared to when I use the default method that Gendarme provides, which has the form:
<rules include="*" from="Gendarme.Rules.BadPractice.dll"/>
<rules include="*" from="OTHER DLL NAMES"/>
Has anyone done this before? Or can someone point me towards any documentation on the use of gendarme rules?
source
share