# Robotico.Time — EditorConfig (Robotico library 10/10 principal bar) # https://editorconfig.org root = true [*] indent_style = space indent_size = 4 end_of_line = crlf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.{cs,csx,vb,vbx}] dotnet_sort_system_directives_first = true dotnet_separate_import_directive_groups = false csharp_style_namespace_declarations = file_scoped:error # Naming dotnet_naming_rule.private_fields_underscore.symbols = private_fields dotnet_naming_rule.private_fields_underscore.style = underscore_prefix dotnet_naming_rule.private_fields_underscore.severity = suggestion dotnet_naming_symbols.private_fields.applicable_kinds = field dotnet_naming_symbols.private_fields.applicable_accessibilities = private dotnet_naming_style.underscore_prefix.required_prefix = _ dotnet_naming_style.underscore_prefix.capitalization = camel_case dotnet_naming_rule.async_methods_end_with_async.symbols = async_methods dotnet_naming_rule.async_methods_end_with_async.style = async_suffix dotnet_naming_rule.async_methods_end_with_async.severity = warning dotnet_naming_symbols.async_methods.applicable_kinds = method dotnet_naming_symbols.async_methods.required_modifiers = async dotnet_naming_style.async_suffix.required_suffix = Async dotnet_naming_style.async_suffix.capitalization = pascal_case dotnet_naming_rule.constants_pascal.symbols = const_fields dotnet_naming_rule.constants_pascal.style = pascal_case_style dotnet_naming_rule.constants_pascal.severity = suggestion dotnet_naming_symbols.const_fields.applicable_kinds = field dotnet_naming_symbols.const_fields.required_modifiers = const dotnet_naming_style.pascal_case_style.capitalization = pascal_case # Explicit types (no var) dotnet_diagnostic.IDE0008.severity = error csharp_style_var_for_built_in_types = false:error csharp_style_var_when_type_is_apparent = false:error csharp_style_var_elsewhere = false:error csharp_style_expression_bodied_methods = when_on_single_line:error csharp_style_expression_bodied_constructors = false:suggestion csharp_style_expression_bodied_properties = when_on_single_line:suggestion csharp_style_expression_bodied_accessors = when_on_single_line:suggestion csharp_style_expression_bodied_lambdas = when_on_single_line:suggestion csharp_prefer_braces = true:error csharp_prefer_simple_using_statement = false:suggestion dotnet_style_qualification_for_field = false:suggestion dotnet_style_readonly_field = true:suggestion csharp_new_line_before_open_brace = all # CA bar (warnings) dotnet_diagnostic.CA2007.severity = warning dotnet_diagnostic.CA1062.severity = warning dotnet_diagnostic.CA1812.severity = warning dotnet_diagnostic.CA1852.severity = suggestion dotnet_diagnostic.CA1725.severity = warning dotnet_diagnostic.CA1816.severity = warning dotnet_diagnostic.CA1305.severity = warning # ----------------------------------------------------------------------------- # Principal enforcement (IDE / MA / CS8604) — errors; last wins # ----------------------------------------------------------------------------- dotnet_diagnostic.IDE0004.severity = error dotnet_diagnostic.IDE0005.severity = error dotnet_diagnostic.IDE0008.severity = error dotnet_diagnostic.IDE0011.severity = error dotnet_diagnostic.IDE0017.severity = error dotnet_diagnostic.IDE0018.severity = error dotnet_diagnostic.IDE0020.severity = error dotnet_diagnostic.IDE0022.severity = error dotnet_diagnostic.IDE0028.severity = error dotnet_diagnostic.IDE0030.severity = error dotnet_diagnostic.IDE0031.severity = error dotnet_diagnostic.IDE0034.severity = error dotnet_diagnostic.IDE0035.severity = error dotnet_diagnostic.IDE0036.severity = error dotnet_diagnostic.IDE0037.severity = error dotnet_diagnostic.IDE0038.severity = error dotnet_diagnostic.IDE0062.severity = error dotnet_diagnostic.IDE0063.severity = error dotnet_diagnostic.IDE0066.severity = error dotnet_diagnostic.IDE0072.severity = error dotnet_diagnostic.IDE0074.severity = error dotnet_diagnostic.IDE0090.severity = error dotnet_diagnostic.IDE0161.severity = error dotnet_diagnostic.IDE0290.severity = error dotnet_diagnostic.IDE0301.severity = error dotnet_diagnostic.IDE0303.severity = error dotnet_diagnostic.IDE0305.severity = error dotnet_diagnostic.IDE0330.severity = error dotnet_diagnostic.IDE0270.severity = error dotnet_diagnostic.IDE0061.severity = error dotnet_diagnostic.IDE0300.severity = none dotnet_diagnostic.CS8604.severity = error # Meziantou — enforced set (must also be absent from MeziantouNoWarn.props) dotnet_diagnostic.MA0004.severity = error dotnet_diagnostic.MA0011.severity = error dotnet_diagnostic.MA0025.severity = error dotnet_diagnostic.MA0040.severity = error dotnet_diagnostic.MA0042.severity = error dotnet_diagnostic.MA0043.severity = error dotnet_diagnostic.MA0048.severity = error dotnet_diagnostic.MA0049.severity = error dotnet_diagnostic.MA0051.severity = error dotnet_diagnostic.MA0053.severity = error dotnet_diagnostic.MA0057.severity = error dotnet_diagnostic.MA0058.severity = error dotnet_diagnostic.MA0059.severity = error dotnet_diagnostic.MA0067.severity = error dotnet_diagnostic.MA0089.severity = error dotnet_diagnostic.MA0141.severity = error dotnet_diagnostic.MA0142.severity = error dotnet_diagnostic.MA0144.severity = error dotnet_diagnostic.MA0148.severity = error dotnet_diagnostic.MA0149.severity = error dotnet_diagnostic.MA0155.severity = error dotnet_diagnostic.MA0156.severity = error dotnet_diagnostic.MA0158.severity = error dotnet_diagnostic.MA0176.severity = error MA0051.maximum_lines_per_method = 200 MA0051.maximum_statements_per_method = 150 csharp_style_implicit_object_creation_when_type_is_apparent = true:error csharp_style_prefer_collection_expression = true:error dotnet_style_prefer_collection_expression = true:error csharp_prefer_system_threading_lock = true:error [*.{json,yml,yaml}] indent_size = 2 [*.md] trim_trailing_whitespace = false [*.adoc] trim_trailing_whitespace = false