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

SA1402 Should not apply to file-scoped types #3803

Open
RenderMichael opened this issue Feb 12, 2024 · 1 comment
Open

SA1402 Should not apply to file-scoped types #3803

RenderMichael opened this issue Feb 12, 2024 · 1 comment

Comments

@RenderMichael
Copy link

The following code should not give a warning

public sealed class C
{
}

file static class CHelpers
{
}
@bjornhellander
Copy link
Contributor

Seems like a reasonable request to me, since this situation is why the file modifier was added

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

No branches or pull requests

2 participants