-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Code Quality: Enforced code style in EditorConfig #16441
base: main
Are you sure you want to change the base?
Conversation
@0x5bfa what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some of them are default values and can be omitted but LGTM.
Looks good, once this merged we'd like to run "dotnet format -w PROJ_PATH" and create spell check exclude dictionary.
dotnet_naming_symbols.methods.applicable_accessibilities = * | ||
dotnet_naming_symbols.methods.required_prefix = | ||
dotnet_naming_symbols.methods.required_suffix = Async |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this affect on all methods?
dotnet_naming_symbols.constants.required_prefix = | ||
dotnet_naming_symbols.constants.required_suffix = | ||
dotnet_naming_symbols.constants.required_capitalization = all_upper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Pascal is fine. Title case is used in C/C++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, we require this. The normal C# convention is to use PascalCase for constants, we should amend.
dotnet_naming_rule.camel_case_for_parameters.style = camel_case | ||
dotnet_naming_rule.pascal_case_for_properties.style = pascal_case | ||
dotnet_naming_rule.upper_case_for_constants.style = all_upper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above.
Resolved / Related Issues
Steps used to test these changes
N/A
More details are coming soon!