-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[System.Threading.Thread] Follow code style #68551
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
Conversation
|
Tagging subscribers to this area: @mangod9 Issue Detailsfollowup to #68232
|
|
Maybe we can put this rule in the global editor config!? And maybe severity to warning? [Edited] |
I don't use an editor that reads .editorconfig, or that displays compilation warnings. But I'll try to build with warnings as errors next time I modify c# files. |
No no you got me wrong 😅, you can use the editor whatever you like. My point was the config is already there in place, why CI didn't fail when the rule was violated? Maybe the value is just set to cc @stephentoub |
Because we don't enforce every piece of guidance on style preference in the editorconfig; it is a preference, not a requirement. |
umm ok. Got that. But shouldn't we follow a consistent style across the codebase? And warn users if they didn't follow? |
If you're starting from scratch with a greenfield app, sure. If you've got millions and millions of lines of code written by hundreds of developers over two decades following disparate guidelines for style, forcing every line of existing code to adhere to every one of the style preferences is not a high priority. |
|
Yessss, totally agree! On the other side, how I think about this one, is like if someone finds a violation we should create an issue on the repo with a |
Contributions that just move a brace from one line to the next aren't particularly interesting to us; we even ask that PRs just about style not be submitted: By rough search, there are ~34,000 cases of a |
|
Hmm yeah. Thanks, Stephen for the clarification, appreciate it a lot! There is always a thing that I learn every single time I get a chance to chat with you! 😅🙌 |
|
Looks like there are other follow-up changes that I need to land for wasm-mt. Closing this in favor of #68563 |
followup to #68232