Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Van Holder <tim.vanholder@gmail.com>2022-09-30 00:10:31 +0300
committerGitHub <noreply@github.com>2022-09-30 00:10:31 +0300
commit65a29121bcdbee99a45c76dc35b4ea94e5e23b53 (patch)
tree18e5bdd8321d5ac19fc8b232e1164f4dd74dd539
parent9eb00e40195963ec797ddd2bd785a33ff458958d (diff)
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.
-rw-r--r--.editorconfig14
1 files changed, 13 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index 6868a57..e1d9b64 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -8,4 +8,16 @@ csharp_space_between_method_call_name_and_opening_parenthesis = true
csharp_space_before_open_square_brackets = true
csharp_new_line_before_open_brace = methods
csharp_new_line_before_else = false
-csharp_indent_switch_labels = false \ No newline at end of file
+csharp_indent_switch_labels = false
+
+trim_trailing_whitespace = false
+
+dotnet_naming_symbols.fields_locals_and_parameters.applicable_kinds = field, local, parameter
+dotnet_naming_symbols.fields_locals_and_parameters.applicable_accessibilities = *
+
+dotnet_naming_style.snake_case.capitalization = all_lower
+dotnet_naming_style.snake_case.word_separator = _
+
+dotnet_naming_rule.fields_locals_and_parameters_use_snake_case.symbols = fields_locals_and_parameters
+dotnet_naming_rule.fields_locals_and_parameters_use_snake_case.style = snake_case
+dotnet_naming_rule.fields_locals_and_parameters_use_snake_case.severity = suggestion