-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.editorconfig
31 lines (24 loc) · 1.1 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
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.cs]
dotnet_diagnostic.IDE0008.severity = none # use explicit type instead of var
dotnet_diagnostic.IDE0011.severity = none # add braces to 'if' statement
dotnet_diagnostic.IDE0005.severity = suggestion # using directive is unnecessary
dotnet_diagnostic.IDE0049.severity = suggestion # name can be simplified
dotnet_diagnostic.IDE0055.severity = suggestion # fix formatting
dotnet_diagnostic.IDE0130.severity = error # namespace match directory structure
dotnet_diagnostic.CA1062.severity = error # null check
dotnet_diagnostic.CA1303.severity = none # literal string, introduce a resource table
dotnet_diagnostic.CA1707.severity = none # _ in method name (common in unit tests)
# IDE0160: Convert to file-scoped namespace
csharp_style_namespace_declarations = file_scoped:warning
dotnet_analyzer_diagnostic.severity = warning
dotnet_code_quality.ca1711.allowed_suffixes = Dictionary|Stream
[*.AssemblyInfo.cs]
generated_code = true