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

Alternative brace placement #3776

Closed
bjornhellander opened this issue Jan 10, 2024 · 2 comments
Closed

Alternative brace placement #3776

bjornhellander opened this issue Jan 10, 2024 · 2 comments

Comments

@bjornhellander
Copy link
Contributor

I have a client which uses this package but insists on a slightly different code style, so they disable some rules that does not fit their style. Specifically SA1500, since they want the braces on the same line. How would you feel about an alternative rule to instead enforce that style?

@sharwell
Copy link
Member

No.

@sharwell sharwell closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
@sharwell
Copy link
Member

I would recommend either the formatting analyzer from Roslyn for handling this case, or creating a new analyzer in a separate package. Braces on the same line is not a standard pattern for C# code and should be avoided the same way braces on a separate line should be avoided in Java or Go code.

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

No branches or pull requests

2 participants