-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-IDEBugVerifiedhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Description
During my ongoing work on DotNetAnalyzers/StyleCopAnalyzers#261, I noticed a potential problem with CommonFormattingHelpers.IsFirstTokenOnLine.
Consider the following code:
int x = Foo(a
, b);In this case, IsFirstTokenOnLine returns true for the , token. However, if the input is modified to the following:
int x = Foo(a // a comment
, b);The code returns false for the , token. This occurs because non-whitespace characters appear between the , token and the preceding token a.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEBugVerifiedhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it