Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csharpier-ignore comment not respected in certain scopes #1342

Closed
jamesfoster-excelpoint opened this issue Sep 4, 2024 · 1 comment · Fixed by #1345
Closed

csharpier-ignore comment not respected in certain scopes #1342

jamesfoster-excelpoint opened this issue Sep 4, 2024 · 1 comment · Fixed by #1345
Milestone

Comments

@jamesfoster-excelpoint
Copy link
Contributor

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.

@jamesfoster-excelpoint
Copy link
Contributor Author

jamesfoster-excelpoint commented Sep 11, 2024

Thanks ❤️

@belav belav closed this as completed in 3fd7faa Sep 15, 2024
pisolofin pushed a commit to pisolofin/csharpier-editorconfig that referenced this issue Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants