Skip to content
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

Update codestyle analyzer #55646

Merged
merged 2 commits into from
Aug 17, 2021
Merged

Update codestyle analyzer #55646

merged 2 commits into from
Aug 17, 2021

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Aug 16, 2021

No description provided.

@jcouv jcouv self-assigned this Aug 16, 2021
@jcouv jcouv marked this pull request as ready for review August 16, 2021 22:31
@jcouv jcouv requested review from a team as code owners August 16, 2021 22:31
@jcouv
Copy link
Member Author

jcouv commented Aug 16, 2021

FYI @sharwell

@@ -101,7 +101,7 @@ internal override void GenerateMethodBodyStatements(SyntheticBoundNodeFactory F,

internal static bool IsCopyConstructor(Symbol member)
{
if (member is MethodSymbol { ContainingType: { IsRecordStruct: false }, MethodKind: MethodKind.Constructor } method)
if (member is MethodSymbol { ContainingType.IsRecordStruct: false, MethodKind: MethodKind.Constructor } method)
Copy link
Member

Choose a reason for hiding this comment

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

We can use extended property patterns in the compiler now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, since around the time dev17p3 became public we've made it a requirement for working on roslyn, so we can use C# 10 features :-)

@@ -30,7 +30,7 @@
<RoslynDiagnosticsNugetPackageVersion>3.3.3-beta1.21105.3</RoslynDiagnosticsNugetPackageVersion>
<MicrosoftCodeAnalysisNetAnalyzersVersion>6.0.0-rc1.21366.2</MicrosoftCodeAnalysisNetAnalyzersVersion>
<MicrosoftCodeAnalysisTestingVersion>1.1.0-beta1.21322.2</MicrosoftCodeAnalysisTestingVersion>
<CodeStyleAnalyzerVersion>3.10.0</CodeStyleAnalyzerVersion>
<CodeStyleAnalyzerVersion>4.0.0-3.final</CodeStyleAnalyzerVersion>
Copy link
Member

Choose a reason for hiding this comment

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

💡 The version of dotnet-format in dotnet-tools.json should be updated to match this version at the same time. @JoeRobich can help identify the matching version number.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Thanks

@jcouv jcouv enabled auto-merge (squash) August 17, 2021 20:55
@jcouv jcouv merged commit 56ccda4 into dotnet:main Aug 17, 2021
@ghost ghost added this to the Next milestone Aug 17, 2021
@dibarbet dibarbet modified the milestones: Next, 17.0.P4 Aug 31, 2021
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