Skip to content

Port ConvertSwitchStatementToExpression analyzer/fixer/tests to share…#42171

Merged
mavasani merged 1 commit intodotnet:masterfrom
mavasani:ConvertSwitchStatementToExpression
Mar 5, 2020
Merged

Port ConvertSwitchStatementToExpression analyzer/fixer/tests to share…#42171
mavasani merged 1 commit intodotnet:masterfrom
mavasani:ConvertSwitchStatementToExpression

Conversation

@mavasani
Copy link
Contributor

@mavasani mavasani commented Mar 4, 2020

…d layer

Straightforward file and resource moves to shared layer. Recommend reviewing with xlf file filter applied: Review link

…d layer

Straightforward file and resource moves to shared layer.
@mavasani mavasani added this to the 16.6.P1 milestone Mar 4, 2020
@mavasani mavasani requested review from a team and CyrusNajmabadi March 4, 2020 22:27
@@ -85,9 +89,6 @@ private void AnalyzeSyntax(SyntaxNodeAnalysisContext context)
.Add(Constants.ShouldRemoveNextStatementKey, shouldRemoveNextStatement.ToString(CultureInfo.InvariantCulture))));
}

public override bool OpenFileOnly(OptionSet options)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant override as the base implementation also returns false.

@mavasani mavasani merged commit a8b09ee into dotnet:master Mar 5, 2020
@ghost ghost modified the milestones: 16.6.P1, Next Mar 5, 2020
@mavasani mavasani deleted the ConvertSwitchStatementToExpression branch March 5, 2020 02:38
@sharwell sharwell modified the milestones: Next, 16.6.P2 Mar 17, 2020
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionConstants.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sharwell @mavasani Do we need to do this for any new analyzer? Hopefully not..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmat is taking care of this in #42517. However, please add new analyzers to this shared project, so they automatically get included in the CodeStyle NuGet package and are available in CI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also tagging @CyrusNajmabadi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants