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

RCS0060 doesn't report an error if usings are placed after the namespace declaration #1011

Closed
xt0rted opened this issue Dec 6, 2022 · 0 comments · Fixed by #1014
Closed

Comments

@xt0rted
Copy link
Contributor

xt0rted commented Dec 6, 2022

Product and Version Used: 4.2.0

Steps to Reproduce:

roslynator_blank_line_after_file_scoped_namespace_declaration = true

# RCS0060: Add/remove line after file scoped namespace declaration
dotnet_diagnostic.RCS0060.severity = error
namespace MyApp;
using MyApp.Things;

public class Stuff
{
}

Actual Behavior:

No error is reported.

Expected Behavior:

For an error to be reported and the suggested fix to be:

namespace MyApp;

using MyApp.Things;

public class Stuff
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants