Closed Bergam64 closed 1 month ago
Product and Version Used: VS extension Roslynator 2022 v4.12.5
Steps to Reproduce:
RCS0005
.editorconfig
Actual Behavior:
namespace MyNamespace { /// <summary> /// ... /// </summary> public class Class1 { #region MyRegion #pragma warning disable 1591 public int MyProperty { get; set; } #pragma warning restore 1591 #endregion // <-- RCS0005 is wrongly reported here, although there's a blank line above. } }
Applying the code fix adds a blank line that is not needed, which causes RCS1036 (Remove unnecessary blank line) to be reported on that line:
RCS1036
namespace MyNamespace { /// <summary> /// ... /// </summary> public class Class1 { #region MyRegion #pragma warning disable 1591 public int MyProperty { get; set; } #pragma warning restore 1591 #endregion } }
Expected Behavior:
namespace MyNamespace { /// <summary> /// ... /// </summary> public class Class1 { #region MyRegion #pragma warning disable 1591 public int MyProperty { get; set; } #pragma warning restore 1591 #endregion // <-- No RCS0005 reported here. } }
Product and Version Used: VS extension Roslynator 2022 v4.12.5
Steps to Reproduce:
RCS0005
in your.editorconfig
file (disabled by default).Actual Behavior:
Applying the code fix adds a blank line that is not needed, which causes
RCS1036
(Remove unnecessary blank line) to be reported on that line:Expected Behavior: