| 1 | root = true |
| 2 | |
| 3 | [*.{cs,csx,vb,vbx}] |
| 4 | charset = utf-8 |
| 5 | indent_style = space |
| 6 | indent_size = 4 |
| 7 | insert_final_newline = true |
| 8 | trim_trailing_whitespace = true |
| 9 | |
| 10 | [*.cs] |
| 11 | # --- C# style baseline (runtime-like) --- |
| 12 | csharp_new_line_before_open_brace = all |
| 13 | csharp_new_line_before_else = true |
| 14 | csharp_new_line_before_catch = true |
| 15 | csharp_new_line_before_finally = true |
| 16 | |
| 17 | csharp_indent_block_contents = true |
| 18 | csharp_indent_braces = false |
| 19 | csharp_indent_case_contents = true |
| 20 | csharp_indent_case_contents_when_block = false |
| 21 | csharp_indent_switch_labels = true |
| 22 | csharp_indent_labels = one_less_than_current |
| 23 | |
| 24 | csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion |
| 25 | |
| 26 | dotnet_style_qualification_for_field = false:suggestion |
| 27 | dotnet_style_qualification_for_property = false:suggestion |
| 28 | dotnet_style_qualification_for_method = false:suggestion |
| 29 | dotnet_style_qualification_for_event = false:suggestion |
| 30 | |
| 31 | csharp_style_var_for_built_in_types = false:suggestion |
| 32 | csharp_style_var_when_type_is_apparent = false:suggestion |
| 33 | csharp_style_var_elsewhere = false:suggestion |
| 34 | dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion |
| 35 | dotnet_style_predefined_type_for_member_access = true:suggestion |
| 36 | |
| 37 | csharp_using_directive_placement = outside_namespace:suggestion |
| 38 | dotnet_sort_system_directives_first = true |
| 39 | csharp_prefer_braces = true:suggestion |
| 40 | |
| 41 | dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion |
| 42 | dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields |
| 43 | dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style |
| 44 | dotnet_naming_symbols.private_internal_fields.applicable_kinds = field |
| 45 | dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal |
| 46 | dotnet_naming_style.camel_case_underscore_style.required_prefix = _ |
| 47 | dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case |
| 48 | |
| 49 | dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion |
| 50 | dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields |
| 51 | dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style |
| 52 | dotnet_naming_symbols.static_fields.applicable_kinds = field |
| 53 | dotnet_naming_symbols.static_fields.required_modifiers = static |
| 54 | dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected |
| 55 | dotnet_naming_style.static_prefix_style.required_prefix = s_ |
| 56 | dotnet_naming_style.static_prefix_style.capitalization = camel_case |
| 57 | |
| 58 | dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion |
| 59 | dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields |
| 60 | dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style |
| 61 | dotnet_naming_symbols.constant_fields.applicable_kinds = field |
| 62 | dotnet_naming_symbols.constant_fields.required_modifiers = const |
| 63 | dotnet_naming_style.pascal_case_style.capitalization = pascal_case |
| 64 | |
| 65 | # --- Header template strategy --- |
| 66 | # Keep template now, enforce later with separate PR. |
| 67 | file_header_template = Copyright (c) CascadeIDE contributors.\nLicensed under the project license. |
| 68 | dotnet_diagnostic.IDE0073.severity = none |
| 69 | |
| 70 | # Quiet hints while baseline stabilizes. |
| 71 | dotnet_diagnostic.IDE0031.severity = silent |
| 72 | dotnet_diagnostic.IDE0071.severity = silent |
| 73 | |
| 74 | # Тесты: имена методов с подчёркиваниями (стиль xUnit / читаемые сценарии). |
| 75 | [CascadeIDE.Tests/**/*.cs] |
| 76 | dotnet_diagnostic.CA1707.severity = none |
| 77 | |