Skip to content

Update Microsoft.CodeAnalysis.Analyzers to 3.3.3#58154

Merged
sharwell merged 5 commits intodotnet:mainfrom
Youssef1313:patch-24
Dec 9, 2021
Merged

Update Microsoft.CodeAnalysis.Analyzers to 3.3.3#58154
sharwell merged 5 commits intodotnet:mainfrom
Youssef1313:patch-24

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

3.3.2 has a bug that's being reported a lot. Updating the dependency to 3.3.3.

@Youssef1313 Youssef1313 requested a review from a team as a code owner December 7, 2021 10:17
@ghost ghost added Community The pull request was submitted by a contributor who is not a Microsoft employee. Area-Infrastructure labels Dec 7, 2021
@Youssef1313
Copy link
Copy Markdown
Member Author

@333fred In your comment (dotnet/roslyn-analyzers#5246 (comment)), were you hitting the issue in roslyn repo or outside? If in roslyn, can you confirm this fixes it?

<PropertyGroup>
<!-- Versions used by several individual references below -->
<RoslynDiagnosticsNugetPackageVersion>3.3.3-beta1.21105.3</RoslynDiagnosticsNugetPackageVersion>
<RoslynDiagnosticsNugetPackageVersion>3.3.3</RoslynDiagnosticsNugetPackageVersion>
Copy link
Copy Markdown
Member Author

@Youssef1313 Youssef1313 Dec 7, 2021

Choose a reason for hiding this comment

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

This property is used for two packages:

  • Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers
  • Roslyn.Diagnostics.Analyzers

PerformanceSensitiveAnalyzers doesn't have a 3.3.3 version. The version specified for those two packages should be separated.

Filed #58159.

.editorconfig Outdated

# RS1034: Prefer 'IsKind' for checking syntax kinds
# Hold on https://github.com/dotnet/roslyn/pull/51823#pullrequestreview-612747491
dotnet_diagnostic.RS1034.severity = none
Copy link
Copy Markdown
Contributor

@sharwell sharwell Dec 7, 2021

Choose a reason for hiding this comment

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

❗ Use .globalconfig instead of .editorconfig for disabling rules (the latter requires evaluating the severity condition for every syntax tree in the solution, instead of just once). Roslyn's global configuration files are here:
https://github.com/dotnet/roslyn/tree/main/eng/config/globalconfigs

📝 Some rules currently violate this. You only need to update this (the new) severity configuration. The rest can stay as they currently are.

@333fred
Copy link
Copy Markdown
Member

333fred commented Dec 9, 2021

@333fred In your comment (dotnet/roslyn-analyzers#5246 (comment)), were you hitting the issue in roslyn repo or outside? If in roslyn, can you confirm this fixes it?

Outside the repo, but I did confirm that 3.3.3 fixed the issue.

@sharwell sharwell enabled auto-merge December 9, 2021 16:39
@sharwell sharwell merged commit 39e010e into dotnet:main Dec 9, 2021
@ghost ghost added this to the Next milestone Dec 9, 2021
@Youssef1313 Youssef1313 deleted the patch-24 branch December 9, 2021 17:15
@Cosifne Cosifne modified the milestones: Next, 17.1.P3 Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants