From 158ec17f00c7291339127a933cb6a4c27e65a490 Mon Sep 17 00:00:00 2001 From: Calvin Wilkinson Date: Sat, 8 Jun 2024 10:56:25 +0100 Subject: [PATCH] chore: update editorconfig to help maintain coding standards --- .editorconfig | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index beeadd0..4e8db56 100644 --- a/.editorconfig +++ b/.editorconfig @@ -59,10 +59,10 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case # Use PascalCase for constant fields dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = warning -dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style dotnet_naming_symbols.constant_fields.applicable_kinds = field -dotnet_naming_symbols.constant_fields.applicable_accessibilities = * +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * dotnet_naming_symbols.constant_fields.required_modifiers = const @@ -154,6 +154,9 @@ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false csharp_space_between_method_call_name_and_opening_parenthesis = false csharp_space_between_method_call_empty_parameter_list_parentheses = false +# Opening square brackets should not be preceded by a space. +dotnet_diagnostic.SA1010.severity = none + # Wrapping preferences csharp_preserve_single_line_blocks = true @@ -197,3 +200,17 @@ csharp_prefer_simple_using_statement = true:suggestion # Using directives must be placed inside of a namespace declaration # IDE0065: Misplaced using directive csharp_using_directive_placement = inside_namespace + +############################################################# +# Resharper Rules # +# Resharper rule name syntax # +# resharper__highlighting= # +############################################################# + +# noinspection EditorConfigKeyCorrectness + +resharper_bad_parens_spaces_highlighting = none +resharper_bad_list_line_breaks_highlighting = none +resharper_bad_parens_line_breaks_highlighting = none + +# inspection EditorConfigKeyCorrectness