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 · 2 comments · May be fixed by #3879
Open

SA1402 Should not apply to file-scoped types #3803

RenderMichael opened this issue Feb 12, 2024 · 2 comments · May be fixed by #3879

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

6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Jul 31, 2024
@6bee
Copy link

6bee commented Jul 31, 2024

Please merge PR #3879 to resolve this issue.

6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Aug 3, 2024
6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Aug 26, 2024
6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Aug 30, 2024
@6bee 6bee linked a pull request Aug 30, 2024 that will close this issue
6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Aug 30, 2024
6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Aug 30, 2024
6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Aug 30, 2024
6bee added a commit to 6bee/StyleCopAnalyzers that referenced this issue Aug 31, 2024
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 a pull request may close this issue.

3 participants