Conflict between `RCS0009` and `RCS0036` for auto-properties with documentation
BodrickLight opened this issue · comments
Product and Version Used:
Roslynator.Analyzers v4.12.2
Roslynator.Formatting.Analyzers v4.12.2
Steps to Reproduce:
- Create a class with documented auto-properties.
- RCS0036 is raised to remove blank lines between single-line declarations of the same kind
- Apply an auto-fix - the blank line is removed
- RCS0009 is raised to add a blank line between declaration and documentation comment
- Apply an auto-fix - the blank line is added
goto 2
Actual Behavior:
public class TestClass
{
/// <summary>
/// x.
/// </summary>
public int A { get; set; }
/* <-- RCS0036 raised here incorrectly */
/// <summary>
/// x.
/// </summary>
public int B { get; set; }
public int C { get; set; }
public int D { get; set; }
}
public class TestClass
{
/// <summary>
/// x.
/// </summary>
public int A { get; set; } /* <-- RCS0009 raised here correctly */
/// <summary>
/// x.
/// </summary>
public int B { get; set; }
public int C { get; set; }
public int D { get; set; }
}
Expected Behavior:
public class TestClass
{
/// <summary>
/// x.
/// </summary>
public int A { get; set; }
/// <summary>
/// x.
/// </summary>
public int B { get; set; }
public int C { get; set; }
public int D { get; set; }
}