RCS0010: Add blank line between declarations
Properties
Property | Value |
---|---|
Default Severity | disabled by default |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
class Foo
{
void M1()
{
}
void M2()
{
}
/// <summary>
/// ...
/// </summary>
void M3()
{
}
string P1 { get; set; }
[Obsolete]
string P2 { get; set; }
}
enum Bar
{
A = 0,
/// <summary>
/// ...
/// </summary>
B = 1,
[Obsolete]
C = 2,
}
fix.cs
class Foo
{
void M1()
{
}
void M2()
{
}
/// <summary>
/// ...
/// </summary>
void M3()
{
}
string P1 { get; set; }
[Obsolete]
string P2 { get; set; }
}
enum Bar
{
A = 0,
/// <summary>
/// ...
/// </summary>
B = 1,
[Obsolete]
C = 2,
}
Remarks
This rule does not enforce an blank line between two single-line declaration.