Skip to content

Commit 65a2912

Browse files
authored
Add more style configuration (#854)
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.
1 parent 9eb00e4 commit 65a2912

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.editorconfig

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,16 @@ csharp_space_between_method_call_name_and_opening_parenthesis = true
88
csharp_space_before_open_square_brackets = true
99
csharp_new_line_before_open_brace = methods
1010
csharp_new_line_before_else = false
11-
csharp_indent_switch_labels = false
11+
csharp_indent_switch_labels = false
12+
13+
trim_trailing_whitespace = false
14+
15+
dotnet_naming_symbols.fields_locals_and_parameters.applicable_kinds = field, local, parameter
16+
dotnet_naming_symbols.fields_locals_and_parameters.applicable_accessibilities = *
17+
18+
dotnet_naming_style.snake_case.capitalization = all_lower
19+
dotnet_naming_style.snake_case.word_separator = _
20+
21+
dotnet_naming_rule.fields_locals_and_parameters_use_snake_case.symbols = fields_locals_and_parameters
22+
dotnet_naming_rule.fields_locals_and_parameters_use_snake_case.style = snake_case
23+
dotnet_naming_rule.fields_locals_and_parameters_use_snake_case.severity = suggestion

0 commit comments

Comments
 (0)