Skip to content

Commit

Permalink
Merge pull request #50303 from mavasani/DeleteDisposeAnalyzers
Browse files Browse the repository at this point in the history
Delete IDE dispose analyzers
  • Loading branch information
mavasani authored Jan 7, 2021
2 parents 2ce039f + 1a33f8d commit eeba499
Show file tree
Hide file tree
Showing 24 changed files with 4 additions and 12,175 deletions.
3 changes: 0 additions & 3 deletions src/Analyzers/Core/Analyzers/EnforceOnBuildValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ internal static class EnforceOnBuildValues
public const EnforceOnBuild ExpressionValueIsUnused = /*IDE0058*/ EnforceOnBuild.WhenExplicitlyEnabled;
public const EnforceOnBuild MakeStructFieldsWritable = /*IDE0064*/ EnforceOnBuild.WhenExplicitlyEnabled;
public const EnforceOnBuild ConvertSwitchStatementToExpression = /*IDE0066*/ EnforceOnBuild.WhenExplicitlyEnabled;
public const EnforceOnBuild DisposeObjectsBeforeLosingScope = /*IDE0067*/ EnforceOnBuild.WhenExplicitlyEnabled;
public const EnforceOnBuild UseRecommendedDisposePattern = /*IDE0068*/ EnforceOnBuild.WhenExplicitlyEnabled;
public const EnforceOnBuild DisposableFieldsShouldBeDisposed = /*IDE0069*/ EnforceOnBuild.WhenExplicitlyEnabled;
public const EnforceOnBuild PopulateSwitchExpression = /*IDE0072*/ EnforceOnBuild.WhenExplicitlyEnabled;
public const EnforceOnBuild Regex = /*RE0001*/ EnforceOnBuild.WhenExplicitlyEnabled;

Expand Down
7 changes: 4 additions & 3 deletions src/Analyzers/Core/Analyzers/IDEDiagnosticIds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ internal static class IDEDiagnosticIds

public const string ConvertSwitchStatementToExpressionDiagnosticId = "IDE0066";

public const string DisposeObjectsBeforeLosingScopeDiagnosticId = "IDE0067";
public const string UseRecommendedDisposePatternDiagnosticId = "IDE0068";
public const string DisposableFieldsShouldBeDisposedDiagnosticId = "IDE0069";
// IDE0067-IDE0069 deprecated in favor of CA2000 and CA2213
// public const string DisposeObjectsBeforeLosingScopeDiagnosticId = "IDE0067";
// public const string UseRecommendedDisposePatternDiagnosticId = "IDE0068";
// public const string DisposableFieldsShouldBeDisposedDiagnosticId = "IDE0069";

public const string UseSystemHashCode = "IDE0070";

Expand Down
Loading

0 comments on commit eeba499

Please sign in to comment.