Skip to content

Conversation

@xtqqczze
Copy link
Contributor

@xtqqczze xtqqczze commented Dec 3, 2020

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

@Dotnet-GitSync-Bot
Copy link
Collaborator

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.

@danmoseley
Copy link
Member

Does this bring any new rules, other than SA1142?

@xtqqczze
Copy link
Contributor Author

xtqqczze commented Dec 3, 2020

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.

@danmoseley
Copy link
Member

thanks

@ghost
Copy link

ghost commented Dec 3, 2020

Hello @danmosemsft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

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 (@msftbot) and give me an instruction to get started! Learn more here.

<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 -->
Copy link
Contributor

@sharwell sharwell Dec 3, 2020

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@ghost ghost merged commit 8baa263 into dotnet:master Dec 4, 2020
@xtqqczze xtqqczze deleted the upgrade-stylecop branch December 4, 2020 09:24
xtqqczze added a commit to xtqqczze/dotnet-runtime that referenced this pull request Dec 5, 2020
jkotas pushed a commit that referenced this pull request Dec 6, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 4, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants