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 doesn't respect editorconfig csharp_space_between_empty_square_brackets = false #1002

Closed
golavr opened this issue Nov 10, 2023 · 1 comment · Fixed by #1037
Closed
Labels
type:enhancement New feature or request
Milestone

Comments

@golavr
Copy link

golavr commented Nov 10, 2023

Expected

        List<int> ids = [];
        var store = await Get<List<PositionAdd>>(Key) ?? [];

Actual

First line: extra space before square bracket and space between empty square brackets
Second line: space between empty square brackets

        List<int> ids =  [ ];
        var store = await Get<List<PositionAdd>>(Key) ?? [ ];
@belav
Copy link
Owner

belav commented Nov 15, 2023

CSharpier doesn't respect any editorconfig settings beyond the basics covered here.

That being said, the [ ] was not intentional and and [] seems like the preferred way to format.

@belav belav added the type:enhancement New feature or request label Nov 15, 2023
@belav belav modified the milestones: 0.27.0, 0.26.3 Nov 15, 2023
belav added a commit that referenced this issue Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants