-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRules.txt
60 lines (52 loc) · 2.12 KB
/
Rules.txt
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
- undisposed locals
- uncalled private methods
- suggest auto-imp property
- exception xml docs?
- not checking return type of FirstOrDefault()?
- redundant casts
- protected methods not called by base class
Gendarme.BadPractice (http://www.mono-project.com/Gendarme.Rules.BadPractice)
- AvoidCallingProblematicMethodsRule
- DoNotForgetNotImplementedMethodsRule
- OnlyUseDisposeForIDisposableTypesRule
- ToStringShouldNotReturnNullRule
Gendarme.Concurrency (http://www.mono-project.com/Gendarme.Rules.Concurrency)
- DoNotLockOnThisOrTypesRule
Gendarme.Correctness (http://www.mono-project.com/Gendarme.Rules.Concurrency)
- DisposableFieldsShouldBeDisposedRule
- EnsureLocalDisposalRule
- UseValueInPropertySetterRule
- ReviewSelfAssignmentRule
Gendarme.Design (http://www.mono-project.com/Gendarme.Rules.Design)
- AvoidPropertiesWithoutGetAccessorRule
- AvoidRefAndOutParametersRule
- AvoidVisibleNestedTypesRule
- ConsiderConvertingMethodToPropertyRule
- ConsiderUsingStaticTypeRule
- DeclareEventHandlersCorrectlyRule
- DoNotDeclareProtectedMembersInSealedTypeRule
- EnumsShouldDefineAZeroValueRule
- FlagsShouldNotDefineAZeroValueRule
- ImplementEqualsAndGetHashCodeInPairRule
- ImplementICloneableCorrectlyRule
- MissingAttributeUsageOnCustomAttributeRule
- TypesWithDisposableFieldsShouldBeDisposableRule
- UseCorrectDisposeSignaturesRule
Gendarme.Exceptions (http://www.mono-project.com/Gendarme.Rules.Exceptions)
- AvoidArgumentExceptionDefaultConstructorRule
- AvoidThrowingBasicExceptionsRule
- DoNotDestroyStackTraceRule
- DoNotThrowReservedExceptionRule
Gendarme.Naming (http://www.mono-project.com/Gendarme.Rules.Naming)
- UseCorrectPrefixRule
- UseCorrectSuffixRule
Gendarme.Performance (http://www.mono-project.com/Gendarme.Rules.Performance)
- AvoidUncalledPrivateCodeRule
- AvoidUninstantiatedInternalClassesRule
- AvoidUnsealedConcreteAttributesRule
- AvoidLargeNumberOfLocalVariablesRule
- AvoidTypeGetTypeForConstantStringsRule
- AvoidLargeStructureRule
- AvoidUnneededFieldInitializationRule
- AvoidUnecessaryOverrides
FxCop recommended rules