diff --git a/.editorconfig b/.editorconfig index 9d3abe5..50615ba 100644 --- a/.editorconfig +++ b/.editorconfig @@ -42,10 +42,10 @@ csharp_indent_labels = one_less_than_current csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion # avoid this. unless absolutely necessary -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_qualification_for_field = false:error +dotnet_style_qualification_for_property = false:error +dotnet_style_qualification_for_method = false:error +dotnet_style_qualification_for_event = false:error # Types: use keywords instead of BCL types, and permit var only when the type is clear csharp_style_var_for_built_in_types = false:suggestion @@ -154,6 +154,10 @@ csharp_space_between_method_declaration_parameter_list_parentheses = false csharp_space_between_parentheses = false csharp_space_between_square_brackets = false +# Custom +csharp_style_namespace_declarations = file_scoped:error +dotnet_diagnostic.IDE0005.severity = error # Using directive is unnecessary. + # C++ Files [*.{cpp,h,in}] curly_bracket_next_line = true