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

RCS0005 triggers when using preprocessor directives #1610

Open
Sella-GH opened this issue Jan 25, 2025 · 0 comments
Open

RCS0005 triggers when using preprocessor directives #1610

Sella-GH opened this issue Jan 25, 2025 · 0 comments

Comments

@Sella-GH
Copy link

Product and Version Used:
NuGet package v4.12.10

Description

When having a preprocessor directive with a blank line before an #endregion it still triggers the analyzer.

However when adding an additional blank line in between the directive and the #endregion it triggers RCS1036 telling you to remove the blank line.

Code to reproduce

Triggers RCS0005

#region Some region

#if DEBUG
// Some code
#else
// Some code
#endif

#endregion Some region

Triggers RCS1036

#region Some region

#if DEBUG
// Some code
#else
// Some code
#endif


#endregion Some region
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