Welcome to mirror list, hosted at ThFree Co, Russian Federation.

self-test.ignore « gendarme - github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b759cd39756e7968851928c0dc6b659b0bb62414 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# OK - The rule itself needs the literal new line characters to test against them
R: Gendarme.Rules.Portability.NewLineLiteralRule
M: Gendarme.Framework.RuleResult Gendarme.Rules.Portability.NewLineLiteralRule::CheckMethod(Mono.Cecil.MethodDefinition)

# OK - don't apply the rule to itself
R: Gendarme.Rules.Portability.DoNotHardcodePathsRule
M: System.Void Gendarme.Rules.Portability.DoNotHardcodePathsRule::ProcessUnixProbablyAbsolutePath(System.String)

# OK - in those case the specialization has its contextual sense and helps readability
R: Gendarme.Rules.Maintainability.AvoidUnnecessarySpecializationRule
M: System.Boolean Gendarme.Framework.Engines.CommonAttributesEngine::HasAttribute(Mono.Cecil.TypeDefinition,Gendarme.Framework.Engines.WellKnownTypeAttribute)
M: System.Boolean Gendarme.Framework.Engines.CommonAttributesEngine::HasAttribute(Mono.Cecil.FieldDefinition,Gendarme.Framework.Engines.WellKnownFieldAttribute)
M: System.Boolean Gendarme.Framework.Rocks.CustomAttributeRocks::ContainsAnyType(Mono.Cecil.CustomAttributeCollection,System.String[])
M: System.Boolean Gendarme.Framework.Rocks.CustomAttributeRocks::ContainsType(Mono.Cecil.CustomAttributeCollection,System.String)
M: System.Boolean Gendarme.Framework.Rocks.ModuleRocks::HasDebuggingInformation(Mono.Cecil.ModuleDefinition)
M: System.Void Gendarme.Framework.Defect::.ctor(Gendarme.Framework.IRule,Mono.Cecil.IMetadataTokenProvider,Mono.Cecil.MethodDefinition,Mono.Cecil.Cil.Instruction,Gendarme.Framework.Severity,Gendarme.Framework.Confidence,System.String)

# OK - the gendarme framework is not a beginner, nor easy, API
R: Gendarme.Rules.Design.AvoidRefAndOutParametersRule
M: Mono.Cecil.Cil.Instruction Gendarme.Framework.Helpers.StackEntryAnalysis::GetNextInstruction(Mono.Cecil.Cil.Instruction,System.Object&)

# OK - the field is not owned by this type
R: Gendarme.Rules.Design.TypesWithDisposableFieldsShouldBeDisposableRule
T: Gendarme.GuiRunner

# OK - the framework and the console runner each have a global catch all to report errors
R: Gendarme.Rules.Exceptions.DoNotSwallowErrorsCatchingNonSpecificExceptionsRule
M: System.Byte Gendarme.ConsoleRunner::Execute(System.String[])
M: System.Void Gendarme.Framework.Runner::Initialize()

# OK - System.Configuration.ApplicationSettingsBase works enough for Gendarme's Wizard (using Mono 2.1)
R: Gendarme.Rules.Portability.MonoCompatibilityReviewRule
T: Gendarme.Properties.Settings

# OK - Version and Guid sadly do not provide a TryParse method
R: Gendarme.Rules.Performance.DoNotIgnoreMethodResultRule
M: System.Boolean Gendarme.Rules.Correctness.AttributeStringLiteralsShouldParseCorrectlyRule::TryParseVersion(System.String)
M: System.Boolean Gendarme.Rules.Correctness.AttributeStringLiteralsShouldParseCorrectlyRule::TryParseGuid(System.String)

# OK - MethodSignatures use the CLR names for operators that starts with "op_"
R: Gendarme.Rules.Naming.AvoidNonAlphanumericIdentifierRule
T: Gendarme.Framework.Helpers.MethodSignatures

# OK - IMethodRule is not declared on purpose on BadPractice.ReturnNullRule
R: Gendarme.Rules.Design.ConsiderAddingInterfaceRule
T: Gendarme.Rules.BadPractice.ReturnNullRule

# OK - RegEx sadly do not provide a TryPattern method
R: Gendarme.Rules.Performance.DoNotIgnoreMethodResultRule
M: System.Void Gendarme.Rules.Correctness.ProvideCorrectRegexPatternRule::CheckPattern(Mono.Cecil.Cil.Instruction,System.String)

# OK - The set of potential exceptions of RegEx is unknown
R: Gendarme.Rules.Exceptions.DoNotSwallowErrorsCatchingNonSpecificExceptionsRule
M: System.Void Gendarme.Rules.Correctness.ProvideCorrectRegexPatternRule::CheckPattern(Mono.Cecil.Cil.Instruction,System.String)

# OK - we're using switch extensively and in a way that would be hard to OO-ize while keeping performance and readability
R: Gendarme.Rules.Smells.AvoidSwitchStatementsRule
A: gendarme
A: gendarme-wizard
A: Gendarme.Framework
A: Gendarme.Rules.BadPractice
A: Gendarme.Rules.Concurrency
A: Gendarme.Rules.Correctness
A: Gendarme.Rules.Design
A: Gendarme.Rules.Design.Generic
A: Gendarme.Rules.Design.Linq
A: Gendarme.Rules.Exceptions
A: Gendarme.Rules.Interoperability
A: Gendarme.Rules.Maintainability
A: Gendarme.Rules.Naming
A: Gendarme.Rules.Performance
A: Gendarme.Rules.Portability
A: Gendarme.Rules.Security
A: Gendarme.Rules.Security.Cas
A: Gendarme.Rules.Serialization
A: Gendarme.Rules.Smells
A: Gendarme.Rules.Ui

# non-gendarme code / NDesk.Options
R: Gendarme.Rules.Security.Cas.SecureGetObjectDataOverridesRule
T: NDesk.Options.OptionException
R: Gendarme.Rules.Exceptions.MissingExceptionConstructorsRule
T: NDesk.Options.OptionException
R: Gendarme.Rules.Correctness.MethodCanBeMadeStaticRule
M: System.Void NDesk.Options.Option::AddSeparators(System.String,System.Int32,System.Collections.Generic.List`1<System.String>)
M: System.Void NDesk.Options.OptionSet::Invoke(NDesk.Options.OptionContext,System.String,System.String,NDesk.Options.Option)
R: Gendarme.Rules.Exceptions.DoNotSwallowErrorsCatchingNonSpecificExceptionsRule
M: T NDesk.Options.Option::Parse(System.String,NDesk.Options.OptionContext)
R: Gendarme.Rules.Performance.AvoidUnsealedUninheritedInternalTypeRule
T: NDesk.Options.OptionSet/ActionOption
T: NDesk.Options.OptionSet/ActionOption`1
T: NDesk.Options.OptionSet/ActionOption`2
R: Gendarme.Rules.Performance.AvoidReturningArraysOnPropertiesRule
M: System.String[] NDesk.Options.Option::get_ValueSeparators()
M: System.String[] NDesk.Options.Option::get_Names()
R: Gendarme.Rules.Maintainability.AvoidLackOfCohesionOfMethodsRule
T: NDesk.Options.OptionSet
T: NDesk.Options.OptionContext
R: Gendarme.Rules.Maintainability.AvoidUnnecessarySpecializationRule
M: System.Void NDesk.Options.Option::AddSeparators(System.String,System.Int32,System.Collections.Generic.List`1<System.String>)
R: Gendarme.Rules.Design.AvoidRefAndOutParametersRule
M: System.Boolean NDesk.Options.OptionSet::GetOptionParts(System.String,System.String&,System.String&,System.String&,System.String&)
R: Gendarme.Rules.Exceptions.InstantiateArgumentExceptionCorrectlyRule
M: System.Void NDesk.Options.Option::AddSeparators(System.String,System.Int32,System.Collections.Generic.List`1<System.String>)
M: NDesk.Options.OptionValueType NDesk.Options.Option::ParsePrototype()
R: Gendarme.Rules.Design.Generic.AvoidMethodWithUnusedGenericTypeRule
M: T NDesk.Options.Option::Parse(System.String,NDesk.Options.OptionContext)
R: Gendarme.Rules.Naming.UseCorrectSuffixRule
T: NDesk.Options.OptionSet
R: Gendarme.Rules.Serialization.MarkEnumerationsAsSerializableRule
T: NDesk.Options.OptionValueType