Skip to content

Bug: RemoveViolationComments incorrectly modifies whitespace of preceding comments #65

@Anmol202005

Description

@Anmol202005

The RemoveViolationComments recipe incorrectly changes the formatting of comments that appear before violation comments when removing them.

Expected Behavior

int a;  //hello
//violation
int b;

Should become:

int a;  //hello
int b;

Actual Behavior

int a;
//hello
int b;

The //hello comment loses its original whitespace/positioning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions