You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SA1515 (Single line comment must be preceded by blank line) and SA1506 (A documentation header must not be followed by a blank line) require wrong spacing
#1132
/// <summary>Some summary.</summary>
// Some comment.
public void A()
{
}
Introducing a space between the two comment lines would cause a violation of SA1506.
In this project, the above code gives SA1515. Introducing a space between the two comment lines, which is wrong by legacy StyleCop, removes the analyzer warning.
Incidentally, I don't really like this style, but I have many violations because of the new analyzer behaviour. The primary reason is that we have many comments like
/// <summary>Doc comments here...</summary>
// ReSharper disable once XXXX
public void SomeMethodWithReSharperSuppression()
{
}
where the spacing has been chosen to avoid SC violations. It's a pain that these now give analyzer warnings.
The text was updated successfully, but these errors were encountered:
In legacy StyleCop, the following is correct:
Introducing a space between the two comment lines would cause a violation of SA1506.
In this project, the above code gives SA1515. Introducing a space between the two comment lines, which is wrong by legacy StyleCop, removes the analyzer warning.
See also #1130 and #1131.
Incidentally, I don't really like this style, but I have many violations because of the new analyzer behaviour. The primary reason is that we have many comments like
where the spacing has been chosen to avoid SC violations. It's a pain that these now give analyzer warnings.
The text was updated successfully, but these errors were encountered: