# 如果要从更高级别的目录继承 .editorconfig 设置,请删除以下行 root = true [*] charset = utf-8 [*.cs] # IDE0320: 使匿名函数成为静态函数 csharp_prefer_static_anonymous_function = false # CS8618: 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑添加 "required" 修饰符或声明为可为 null。 dotnet_diagnostic.CS8618.severity = suggestion # IDE0305: 使用 [.. ] 简化集合初始化 dotnet_diagnostic.IDE0305.severity = none # CS8524: switch 表达式不会处理其输入类型的某些值(它不是穷举),这包括未命名的枚举值。 dotnet_diagnostic.CS8524.severity = suggestion [*.{cs,vb}] # IDE0028: 简化集合初始化 dotnet_style_collection_initializer = true:silent # IDE0130: 命名空间与文件夹结构不匹配 dotnet_diagnostic.IDE0130.severity = silent