Skip to content

[StyleCleanUp] Static holder types should be static or sealed (CA1052) #10718

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented Apr 7, 2025

Currently blocked via #10680 hence draft.

Fixes #10717

Description

Fixes classes (usually) with private ctors to be static or sealed (in case of singletons).

Customer Impact

Cleaner codebase for developers.

Regression

No.

Testing

Local build.

Risk

Low, these are all internal classes.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners April 7, 2025 13:55
@h3xds1nz h3xds1nz marked this pull request as draft April 7, 2025 13:55
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions draft labels Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions draft PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CA1052: Static holder types should be static or sealed
1 participant