Skip to content

csharpier-ignore comment not respected in certain scopes #1342

@jamesfoster-excelpoint

Description

@jamesfoster-excelpoint

Input:

return new MyClass
{
    // csharpier-ignore-start
    MyVeryVeryVeryVeryVeryVeryLongProperty = someVeryVeryVeryVeryVeryVeryVeryLongVariable
    // csharpier-ignore-end
}

Output:

return new MyClass
{
    // csharpier-ignore-start
    MyVeryVeryVeryVeryVeryVeryLongProperty =
        someVeryVeryVeryVeryVeryVeryVeryLongVariable
    // csharpier-ignore-end
}

Expected behavior:

Respect the "ignore" comments inside of an object initialiser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions