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

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2014-11-28 12:47:28 +0300
committerMike Krüger <mkrueger@xamarin.com>2014-11-28 12:47:28 +0300
commitbc1c856ecfeb3a1e21f2e9744546d113d6056a4e (patch)
tree02e03a099a70681e0b42f7147f0852ad5eb15e0b /ICSharpCode.NRefactory.CSharp.Refactoring
parentd5462d2f93f03d71dd2a46307935667bd3e35ed0 (diff)
Disabled code issues that uses CF graphs.
Seems that we're getting memory issues on some systems.
Diffstat (limited to 'ICSharpCode.NRefactory.CSharp.Refactoring')
-rw-r--r--ICSharpCode.NRefactory.CSharp.Refactoring/CodeActions/ConvertIfStatementToSwitchStatementAction.cs6
-rw-r--r--ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Custom/UnreachableCodeIssue.cs8
-rw-r--r--ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/CodeQuality/FunctionNeverReturnsIssue.cs10
-rw-r--r--ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/Opportunities/ConvertIfStatementToSwitchStatementIssue.cs8
-rw-r--r--ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/RedundanciesInCode/RedundantIfElseBlockIssue.cs10
5 files changed, 21 insertions, 21 deletions
diff --git a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeActions/ConvertIfStatementToSwitchStatementAction.cs b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeActions/ConvertIfStatementToSwitchStatementAction.cs
index 10c4d8d6..eebc384a 100644
--- a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeActions/ConvertIfStatementToSwitchStatementAction.cs
+++ b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeActions/ConvertIfStatementToSwitchStatementAction.cs
@@ -32,9 +32,9 @@ using ICSharpCode.NRefactory.PatternMatching;
namespace ICSharpCode.NRefactory.CSharp.Refactoring
{
- [ContextAction (
- "Convert 'if' to 'switch'",
- Description = "Convert 'if' statement to 'switch' statement")]
+// [ContextAction (
+// "Convert 'if' to 'switch'",
+// Description = "Convert 'if' statement to 'switch' statement")]
public class ConvertIfStatementToSwitchStatementAction : SpecializedCodeAction<IfElseStatement>
{
protected override CodeAction GetAction (RefactoringContext context, IfElseStatement node)
diff --git a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Custom/UnreachableCodeIssue.cs b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Custom/UnreachableCodeIssue.cs
index 82adad72..3474b299 100644
--- a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Custom/UnreachableCodeIssue.cs
+++ b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Custom/UnreachableCodeIssue.cs
@@ -32,10 +32,10 @@ using ICSharpCode.NRefactory.Refactoring;
namespace ICSharpCode.NRefactory.CSharp.Refactoring
{
- [IssueDescription("Code is unreachable",
- Description = "Code is unreachable.",
- Category = IssueCategories.RedundanciesInCode,
- Severity = Severity.Warning)]
+// [IssueDescription("Code is unreachable",
+// Description = "Code is unreachable.",
+// Category = IssueCategories.RedundanciesInCode,
+// Severity = Severity.Warning)]
public class UnreachableCodeIssue : GatherVisitorCodeIssueProvider
{
protected override IGatherVisitor CreateVisitor(BaseRefactoringContext context)
diff --git a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/CodeQuality/FunctionNeverReturnsIssue.cs b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/CodeQuality/FunctionNeverReturnsIssue.cs
index 6f17893e..a3586638 100644
--- a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/CodeQuality/FunctionNeverReturnsIssue.cs
+++ b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/CodeQuality/FunctionNeverReturnsIssue.cs
@@ -32,11 +32,11 @@ using ICSharpCode.NRefactory.TypeSystem;
namespace ICSharpCode.NRefactory.CSharp.Refactoring
{
- [IssueDescription ("Function never returns",
- Description = "Function does not reach its end or a 'return' statement by any of possible execution paths.",
- Category = IssueCategories.CodeQualityIssues,
- Severity = Severity.Warning,
- AnalysisDisableKeyword = "FunctionNeverReturns")]
+// [IssueDescription ("Function never returns",
+// Description = "Function does not reach its end or a 'return' statement by any of possible execution paths.",
+// Category = IssueCategories.CodeQualityIssues,
+// Severity = Severity.Warning,
+// AnalysisDisableKeyword = "FunctionNeverReturns")]
public class FunctionNeverReturnsIssue : GatherVisitorCodeIssueProvider
{
protected override IGatherVisitor CreateVisitor(BaseRefactoringContext context)
diff --git a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/Opportunities/ConvertIfStatementToSwitchStatementIssue.cs b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/Opportunities/ConvertIfStatementToSwitchStatementIssue.cs
index 391e6975..1d3dffc3 100644
--- a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/Opportunities/ConvertIfStatementToSwitchStatementIssue.cs
+++ b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/Opportunities/ConvertIfStatementToSwitchStatementIssue.cs
@@ -29,10 +29,10 @@ using System.Linq;
namespace ICSharpCode.NRefactory.CSharp.Refactoring
{
- [IssueDescription("'if' statement can be re-written as 'switch' statement",
- Description="Convert 'if' to 'switch'",
- Category = IssueCategories.Opportunities,
- Severity = Severity.Hint)]
+// [IssueDescription("'if' statement can be re-written as 'switch' statement",
+// Description="Convert 'if' to 'switch'",
+// Category = IssueCategories.Opportunities,
+// Severity = Severity.Hint)]
public class ConvertIfStatementToSwitchStatementIssue : GatherVisitorCodeIssueProvider
{
protected override IGatherVisitor CreateVisitor(BaseRefactoringContext context)
diff --git a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/RedundanciesInCode/RedundantIfElseBlockIssue.cs b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/RedundanciesInCode/RedundantIfElseBlockIssue.cs
index 32f0663c..8cf0dc7a 100644
--- a/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/RedundanciesInCode/RedundantIfElseBlockIssue.cs
+++ b/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/RedundanciesInCode/RedundantIfElseBlockIssue.cs
@@ -30,11 +30,11 @@ using System.Linq;
namespace ICSharpCode.NRefactory.CSharp.Refactoring
{
- [IssueDescription("Redundant 'else' keyword",
- Description = "Redundant 'else' keyword.",
- Category = IssueCategories.RedundanciesInCode,
- Severity = Severity.Warning,
- AnalysisDisableKeyword = "RedundantIfElseBlock")]
+// [IssueDescription("Redundant 'else' keyword",
+// Description = "Redundant 'else' keyword.",
+// Category = IssueCategories.RedundanciesInCode,
+// Severity = Severity.Warning,
+// AnalysisDisableKeyword = "RedundantIfElseBlock")]
public class RedundantIfElseBlockIssue : GatherVisitorCodeIssueProvider
{
protected override IGatherVisitor CreateVisitor(BaseRefactoringContext context)