Skip to content

RCS0005 triggers when using preprocessor directives #1610

@Sella-GH

Description

@Sella-GH

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions