-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.xml
24 lines (24 loc) · 2.1 KB
/
rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<gendarme>
<ruleset name="WhatTheHex">
<rules include="*" from="Gendarme.Rules.BadPractice.dll" exclude="AvoidVisibleConstantFieldRule"/>
<rules include="*" from="Gendarme.Rules.Correctness.dll"/>
<!-- I don't use namespaces, but I do use nested types. And the assemblies are only for my use, so I won't use them with CLS or COM. Out parameters are fine in my book -->
<rules include="*" from="Gendarme.Rules.Design.dll" exclude="AvoidRefAndOutParametersRule | AvoidVisibleNestedTypesRule | MarkAssemblyWithCLSCompliantRule | MarkAssemblyWithComVisibleRule"/>
<!-- I want full control over my signals -->
<rules include="*" from="Gendarme.Rules.Design.Generic.dll" exclude="AvoidDeclaringCustomDelegatesRule"/>
<rules include="*" from="Gendarme.Rules.Design.Linq.dll"/>
<!-- Prone to hard-to-ignore false positives. Also, seems like that rule name might have changed at some point -->
<rules include="*" from="Gendarme.Rules.Exceptions.dll" exclude="DontSwallowErrorsCatchingNonspecificExceptionsRule | DoNotSwallowErrorsCatchingNonspecificExceptionsRule"/>
<!-- Godot has a convention for handlers that uses underscores in names, and the "correct suffix" check seems to be getting a false positive -->
<rules include="*" from="Gendarme.Rules.Naming.dll" exclude="AvoidNonAlphanumericIdentifierRule | UseCorrectCasingRule | UseCorrectSuffixRule"/>
<!-- Doesn't seem to handle Godot callbacks correctly -->
<rules include="*" from="Gendarme.Rules.Performance.dll" exclude="AvoidUncalledPrivateCodeRule"/>
<rules include="*" from="Gendarme.Rules.Portability.dll"/>
<rules include="*" from="Gendarme.Rules.Security.dll"/>
<rules include="*" from="Gendarme.Rules.Security.Cas.dll" />
<rules include="*" from="Gendarme.Rules.Serialization.dll"/>
<rules include="*" from="Gendarme.Rules.Maintainability.dll"/>
<rules include="*" from="Gendarme.Rules.Globalization.dll"/>
<rules include="*" from="Gendarme.Rules.Smells.dll" exclude="AvoidSpeculativeGeneralityRule"/>
</ruleset>
</gendarme>