refactor: 枚举移入Models目录,命名空间更新为Rainbow.Entity.Models
大石头 authored at 2026-07-02 12:54:58
1.10 KiB
RainbowBridge
[*.cs]

# .NET 编码风格
dotnet_sort_system_directives_first = true
csharp_style_var_for_built_in_types = false
csharp_style_var_when_type_is_apparent = false
csharp_style_prefer_extended_property_pattern = true
csharp_style_prefer_pattern_matching = true
csharp_style_prefer_null_check_over_type_check = true

# 命名规则
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = warning

dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private

dotnet_naming_style.prefix_underscore.capitalization = camel_case
dotnet_naming_style.prefix_underscore.required_prefix = _

# 使用 .NET 正式类型名
dotnet_style_predefined_type_for_locals_parameters_members = false
dotnet_style_predefined_type_for_member_access = false

# 文件范围命名空间
csharp_style_namespace_declarations = file_scoped

[*.{xml,json,cshtml,md}]
charset = utf-8
indent_style = space
indent_size = 2