-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Upgrade StyleCopAnalyzers to v1.2.0-beta.261 #45562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
|
Does this bring any new rules, other than SA1142? |
SA1142 is a not new rule - but was missing from the ruleset. It seems tuple analyzers including SA1142 were implemented in DotNetAnalyzers/StyleCopAnalyzers#2846, which was part of v1.2.0-beta.66. Maybe the rule was not enabled by default prior to v1.2.0-beta.261, it is hard to tell as there are minimal release notes. |
|
thanks |
|
Hello @danmosemsft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
| <Rule Id="SA1137" Action="None" /> <!-- Elements should have the same indentation --> | ||
| <Rule Id="SA1139" Action="None" /> <!-- Use literal suffix notation instead of casting --> | ||
| <Rule Id="SA1141" Action="Warning" /> <!-- Use tuple syntax --> | ||
| <Rule Id="SA1142" Action="Warning" /> <!-- Refer to tuple elements by name --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 You might disable this one until the next release picks up DotNetAnalyzers/StyleCopAnalyzers#3229.
Since this rule was already disabled in the past, it's not going to be any worse here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a release out hopefully this weekend to pick up this change plus some others related to new C# 9 syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've submitted #45644 for new release.
Follow-up to dotnet#45562.
This release has some changes to support C# 9.0.
For example, SA1000 (which is currently enabled) was updated to support target-typed new expressions.
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/releases/tag/1.2.0-beta.261