Add more style configuration #854
Loading…
Reference in a new issue
No description provided.
Delete branch "more-style-configuration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This sets up .NET naming for fields, locals and parameters to use
snake_case, so that editors won't complain about those.
It also disables trimming of trailing blanks to avoid accidentally
including such whitespace diffs in PRs.
@ -12,0 +12,4 @@trim_trailing_whitespace = falsedotnet_naming_symbols.fields_locals_and_parameters.applicable_kinds = field, local, parameterThat should be
trueno? We don't want trailing whitespaces.@ -12,0 +12,4 @@trim_trailing_whitespace = falsedotnet_naming_symbols.fields_locals_and_parameters.applicable_kinds = field, local, parameter@jbevain i assume @Zastai was trying to define a config that most closely matches the current codebase. given there are existing trailing whitespaces, the assumption is
trim_trailing_whitespace = false@ -12,0 +12,4 @@trim_trailing_whitespace = falsedotnet_naming_symbols.fields_locals_and_parameters.applicable_kinds = field, local, parameterExactly. I got a spurious diff for a PR because Rider had trimmed existing trailing white space.
If the intent is not to have trailing whitespace and it's ok for a PR to include such a change, then by all means set it to true.
@ -12,0 +12,4 @@trim_trailing_whitespace = falsedotnet_naming_symbols.fields_locals_and_parameters.applicable_kinds = field, local, parameterAh got it, makes sense. Thanks. Yeah let's land this one like this, I'll definitely take a follow-up PR that trims trailing whitespaces.
Thank you!