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

Static analysis: inconsistent naming and namespaces #26919

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

ajcvickers
Copy link
Member

Part of #26805

@ajcvickers ajcvickers requested a review from a team December 7, 2021 09:35
@@ -13,7 +13,7 @@ namespace Microsoft.EntityFrameworkCore;
public sealed class InternalUsageDiagnosticAnalyzer : DiagnosticAnalyzer
{
public const string Id = "EF1001";
private static readonly int EFLen = "EntityFrameworkCore".Length;
private static readonly int _efLen = "EntityFrameworkCore".Length;
Copy link
Member

Choose a reason for hiding this comment

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

This should follow the same convention as private const

@ajcvickers
Copy link
Member Author

@dotnet/efteam Updated to make private read-only static fields match the naming convention for const fields.

@ajcvickers ajcvickers requested a review from a team December 13, 2021 09:47
@ajcvickers ajcvickers merged commit 70cd929 into main Dec 14, 2021
@ajcvickers ajcvickers deleted the InspectorMeadows1207 branch December 14, 2021 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants