Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gendarme Ignore List Format

I'm working on a C# solution and I'm using Gendarme integrated with Visual Studio in order to output to the Error List window when I compile.

I can see in the source-code and documentation for Gendarme that you can specify an ignore list to get Gendarme to ignore certain classes within an assembly but I can't for the life of me find any documentation online that shows an example of the format required for this file.

Can anyone help?

like image 812
Apogee Avatar asked Dec 22 '25 07:12

Apogee


1 Answers

This is pretty simple and you can find an example in the self-test.ignore file. The basic ignore rule format is the following:

R: Gendarme.Rules.Category.Name
T: Excluded.Class.Name
N: Excluded.Namespace.Name
M: System.Void Excluded.Class::ExcludedMethodSignature(System.Int32)
A: ExcludedAssembly
... (other lines related to this rule)

R: Gendarme.Rules.Next.Rule
...

You might also wish to take a look at the ignore file parsing code.

like image 178
Yuri Stuken Avatar answered Dec 24 '25 09:12

Yuri Stuken



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!