-
Notifications
You must be signed in to change notification settings - Fork 1
/
gendarmerules.xml
43 lines (41 loc) · 2.75 KB
/
gendarmerules.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<gendarme>
<ruleset name="default">
<!-- DoNotForgetNotImplementedMethodsRule: too many false positives while developing -->
<rules include="*" exclude="DoNotForgetNotImplementedMethodsRule" from="Gendarme.Rules.BadPractice.dll"/>
<!-- ProtectCallToEventDelegatesRule : implementing the suggested fix brings only switches the direction of the
race-condition: i.e. calling a delegate that doesn't expect to be called any more fixing this requires
protection outside of the event calling -->
<rules include="*" exclude="ProtectCallToEventDelegatesRule" from="Gendarme.Rules.Concurrency.dll" />
<!-- EnsureLocalDisposalRule: Due to Autofac this rule is useless -->
<rules include="*" exclude="EnsureLocalDisposalRule" from="Gendarme.Rules.Correctness.dll"/>
<!-- TypesWithDisposableFieldsShouldBeDisposableRule: Too many false positives with classes that have a
reference to an IZetboxContext -->
<rules include="*" exclude="TypesWithDisposableFieldsShouldBeDisposableRule" from="Gendarme.Rules.Design.dll"/>
<!-- DoNotExposeNestedGenericSignaturesRule: not deemed a problem (yet) -->
<rules include="*" exclude="DoNotExposeNestedGenericSignaturesRule" from="Gendarme.Rules.Design.Generic.dll"/>
<rules include="*" from="Gendarme.Rules.Design.Linq.dll"/>
<rules include="*" from="Gendarme.Rules.Exceptions.dll" />
<rules include="*" from="Gendarme.Rules.Interoperability.dll"/>
<rules include="*" from="Gendarme.Rules.Naming.dll"/>
<!--
PreferLiteralOverInitOnlyFieldsRule: const considered harmful (makes the value part of the API)
ReviewLinqMethodRule: Crashes on Zetbox.Client.dll (see https://bugzilla.novell.com/show_bug.cgi?id=656790)
-->
<rules include="*" exclude="PreferLiteralOverInitOnlyFieldsRule | ReviewLinqMethodRule" from="Gendarme.Rules.Performance.dll" />
<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.Ui.dll" />
<!-- AvoidLackOfCohesionOfMethodsRule: Flags mostly generated code or Presentable models, which generally have little cohesion -->
<rules include="*" exclude="AvoidLackOfCohesionOfMethodsRule" from="Gendarme.Rules.Maintainability.dll"/>
</ruleset>
<ruleset name="important">
<rules include="*" from="Gendarme.Rules.Correctness.dll" />
<rules include="*" from="Gendarme.Rules.Exceptions.dll" />
<rules include="*" from="Gendarme.Rules.Interoperability.dll"/>
<rules include="*" from="Gendarme.Rules.Portability.dll" />
<rules include="*" from="Gendarme.Rules.Security.dll" />
<rules include="*" from="Gendarme.Rules.Security.Cas.dll" />
</ruleset>
</gendarme>