| 1 | # RoslynMcp — стиль кода и severities анализаторов (для себя и для генерации в целевых проектах не используется этот файл) |
| 2 | root = true |
| 3 | |
| 4 | [*.cs] |
| 5 | # Indentation |
| 6 | indent_style = space |
| 7 | indent_size = 4 |
| 8 | tab_width = 4 |
| 9 | |
| 10 | # Типы: ключевые слова C# |
| 11 | dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion |
| 12 | dotnet_style_predefined_type_for_member_access = true:suggestion |
| 13 | |
| 14 | # var |
| 15 | csharp_style_var_for_built_in_types = false:suggestion |
| 16 | csharp_style_var_when_type_is_apparent = false:suggestion |
| 17 | csharp_style_var_elsewhere = false:suggestion |
| 18 | |
| 19 | # Скобки и переносы |
| 20 | csharp_prefer_braces = true:suggestion |
| 21 | csharp_new_line_before_open_brace = all:suggestion |
| 22 | |
| 23 | # Severities правил (warnings / suggestion / info / hidden / none) |
| 24 | dotnet_diagnostic.IDE0049.severity = suggestion |
| 25 | dotnet_diagnostic.IDE0005.severity = none |
| 26 | dotnet_diagnostic.IDE0055.severity = suggestion |
| 27 | dotnet_diagnostic.IDE0066.severity = suggestion |
| 28 | dotnet_diagnostic.IDE0090.severity = suggestion |
| 29 | dotnet_diagnostic.IDE0161.severity = suggestion |
| 30 | dotnet_diagnostic.IDE0290.severity = suggestion |
| 31 | dotnet_diagnostic.IDE0300.severity = suggestion |
| 32 | dotnet_diagnostic.IDE0301.severity = suggestion |
| 33 | dotnet_diagnostic.IDE0305.severity = suggestion |
| 34 | dotnet_diagnostic.IDE1005.severity = suggestion |
| 35 | dotnet_diagnostic.CS0162.severity = none |
| 36 | dotnet_diagnostic.CS0168.severity = suggestion |
| 37 | dotnet_diagnostic.CS0219.severity = suggestion |
| 38 | dotnet_diagnostic.CS0414.severity = suggestion |
| 39 | dotnet_diagnostic.CS0618.severity = warning |
| 40 | dotnet_diagnostic.CS1591.severity = none |
| 41 | dotnet_diagnostic.CS8618.severity = suggestion |
| 42 | dotnet_diagnostic.CS8625.severity = suggestion |
| 43 | dotnet_diagnostic.CS8767.severity = suggestion |
| 44 | |
| 45 | # Naming |
| 46 | dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion |
| 47 | dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 48 | dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 49 | dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion |
| 50 | dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 51 | dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 52 | dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion |
| 53 | dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 54 | dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 55 | |
| 56 | dotnet_naming_symbols.interface.applicable_kinds = interface |
| 57 | dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 58 | dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 59 | dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 60 | dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 61 | dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 62 | |
| 63 | dotnet_naming_style.pascal_case.required_prefix = |
| 64 | dotnet_naming_style.pascal_case.required_suffix = |
| 65 | dotnet_naming_style.pascal_case.word_separator = |
| 66 | dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 67 | dotnet_naming_style.begins_with_i.required_prefix = I |
| 68 | dotnet_naming_style.begins_with_i.required_suffix = |
| 69 | dotnet_naming_style.begins_with_i.word_separator = |
| 70 | dotnet_naming_style.begins_with_i.capitalization = pascal_case |
| 71 | |