diff options
Diffstat (limited to '.editorconfig')
| -rw-r--r-- | .editorconfig | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7f4b09b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,50 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{yml,yaml,css}] +indent_style = space +indent_size = 2 + +[*.{md,markdown}] +trim_trailing_whitespace = false + +[*.json] +indent_style = space + +[*.cs] +indent_style = space +indent_size = 4 + +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion + +csharp_style_var_when_type_is_apparent = false:suggestion +csharp_style_var_elsewhere = true:suggestion + +dotnet_style_qualification_for_field = false:suggestion +dotnet_style_qualification_for_property = false:suggestion +dotnet_style_qualification_for_method = false:suggestion +dotnet_style_qualification_for_event = false:suggestion + +dotnet_style_readonly_field = true:suggestion + +csharp_style_namespace_declarations = file_scoped:suggestion +csharp_prefer_static_local_function = true:suggestion + +csharp_prefer_braces = true:suggestion +csharp_space_between_method_call_parentheses = false:suggestion + +csharp_new_line_before_open_brace = all +csharp_indent_case_contents = true +csharp_indent_switch_labels = true + +resharper_unused_auto_property_accessor_global_highlighting = none +dotnet_code_quality_unused_parameters = all + +dotnet_diagnostic.IDE0005.severity = error # Remove unused 'using' statements +dotnet_diagnostic.IDE0290.severity = none # Disable suggesting to use primary constructors + |
