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

RCS0010 doesn't work with file-scoped namespaces #1606

Open
FranzP opened this issue Jan 4, 2025 · 0 comments
Open

RCS0010 doesn't work with file-scoped namespaces #1606

FranzP opened this issue Jan 4, 2025 · 0 comments

Comments

@FranzP
Copy link

FranzP commented Jan 4, 2025

Product and Version Used:

NuGet package v4.12.10

Steps to Reproduce:

  • add or change namespace to file-scoped
namespace Test;

class Foo
{
    void M1()
    {
    }
}
enum Bar
{
    A = 0
}

Actual Behavior:
No error is raised.

Expected Behavior:
Fix from RCS0010.

namespace Test;

class Foo
{
    void M1()
    {
    }
}

enum Bar
{
    A = 0
}
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

1 participant