diff options
Diffstat (limited to 'gendarme/rules/Gendarme.Rules.Maintainability/VariableNamesShouldNotMatchFieldNamesRule.cs')
-rw-r--r-- | gendarme/rules/Gendarme.Rules.Maintainability/VariableNamesShouldNotMatchFieldNamesRule.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gendarme/rules/Gendarme.Rules.Maintainability/VariableNamesShouldNotMatchFieldNamesRule.cs b/gendarme/rules/Gendarme.Rules.Maintainability/VariableNamesShouldNotMatchFieldNamesRule.cs index c62a932e..a9effdff 100644 --- a/gendarme/rules/Gendarme.Rules.Maintainability/VariableNamesShouldNotMatchFieldNamesRule.cs +++ b/gendarme/rules/Gendarme.Rules.Maintainability/VariableNamesShouldNotMatchFieldNamesRule.cs @@ -113,8 +113,9 @@ namespace Gendarme.Rules.Maintainability { // if the name is compiler generated or if we do not have debugging symbols... if (var.IsGeneratedName ()) continue; - if (fields.Contains (var.Name)) - Runner.Report (method, Severity.Medium, Confidence.Normal, var.Name); + // var.Name is not valid anymore since Cecil 0.10 + //if (fields.Contains (var.Name)) + // Runner.Report (method, Severity.Medium, Confidence.Normal, var.Name); } } } |