.editorconfig 863 B

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