-
Notifications
You must be signed in to change notification settings - Fork 512
Open
Description
When the opening parenthesis is followed by a comment, adding a whitespace before the comment triggers SA1008.
I think, this should be allowed.
Some code to illustrate:
var query = query.Where(x => someCondition && // this comment is fine
otherCondition &&// and this is not fine, it triggers SA1003 which is good
!(// but this is somehow fine too
(otherCondition1) &&
(otherCondition2) &&
(otherCondition3)
) &&
!( // and this comment triggers SA1008 because there is a whitespace
(otherCondition4) ||
(otherCondition5) ||
(otherCondition6)
));Metadata
Metadata
Assignees
Labels
No labels