Skip to main content

RCS0060: Add/remove line after file scoped namespace declaration

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version10.0

Examples

Example #1

diagnostic.cs
namespace A.B
public class C
{
}
fix.cs
namespace A.B

public class C
{
}

Configuration

info

Option roslynator_blank_line_after_file_scoped_namespace_declaration is required to be set for this analyzer to work.

.editorconfig
# Add/remove blank line after file scoped namespace declaration
roslynator_blank_line_after_file_scoped_namespace_declaration = true|false

Applies to