-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
When RemoveViolationComments removes a violation comment, it incorrectly adds the removed comment's suffix to the last remaining comment instead of the comment that immediately precedes the removed comment.
Current behavior:
The suffix is added to the last comment in the filtered list, which may not be the actual previous comment.
Expected behavior:
The suffix should be added to the previous comment (the one that appears right before the violation comment in the original list).
InputCode
public class Test {
// comment1
// violation some text
// comment2
int x = 1;
}Current Implementation
public class Test {
// comment1
// comment2
int x = 1;
}Expected Implementation
public class Test {
// comment1
// comment2
int x = 1;
}Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done