-
Notifications
You must be signed in to change notification settings - Fork 10
/
.editorconfig
44 lines (32 loc) · 1.57 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[*.cs]
dotnet_analyzer_diagnostic.severity = error
# IDE0007 and IDE0008 'var' preferences
csharp_style_var_for_built_in_types = true
csharp_style_var_when_type_is_apparent = true
csharp_style_var_elsewhere = true
# IDE0011 Add braces
csharp_prefer_braces = false
# IDE0022 Use expression body for methods
csharp_style_expression_bodied_methods = when_on_single_line
# IDE0160: Convert to file-scoped namespace
csharp_style_namespace_declarations = file_scoped:error
# IDE0058: Expression value is never used
dotnet_diagnostic.CA1707.severity = silent
# CA1014: Mark assemblies with CLSCompliantAttribute
dotnet_diagnostic.CA1014.severity = none
# Disable CS1591: Missing XML comment for publicly visible type or member
dotnet_diagnostic.CS1591.severity = silent
[test/**.cs]
# IDE0058 Remove unnecessary expression value
dotnet_diagnostic.IDE0058.severity = silent
# CA2007: Do not directly await a Task
dotnet_diagnostic.CA2007.severity = silent
# IDE0005: Set MSBuild property 'GenerateDocumentationFile' to 'true' in project file to enable IDE0005
# We do not need to generate documentation file in test projects.
dotnet_diagnostic.IDE0005.severity = silent
# IDE0290: Use primary constructor
# We do not care about using primary constructors.
dotnet_diagnostic.IDE0290.severity = silent
# xUnit1042: The member referenced by the MemberData attribute returns untyped data rows, such as object[]. Consider using TheoryData<> as the return type to provide better type safety.
# We do not care about this, since ours MemberData uses the object type.
dotnet_diagnostic.xUnit1042.severity = silent