diff --git a/.editorconfig b/.editorconfig index 22d62327..ad7bae2f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,6 +12,14 @@ trim_trailing_whitespace = true [*.cs] indent_style = space indent_size = 4 + +# CS8618 表示在定义非空属性时,没有在构造函数、初始化器或默认值中对其进行初始化。 +dotnet_diagnostic.cs8618.severity = none +# CS8618 表示方法的返回类型的可空性与目标委托的不匹配。 +dotnet_diagnostic.cs8613.severity = none +# CS1591 表示缺少XML注释 +dotnet_diagnostic.cs1591.severity = none + # 新行前的成员初始化 csharp_new_line_before_members_in_object_initializers = true # 使用 var 关键字