Skip to content

Commit 703122d

Browse files
committed
Add .editorconfig
1 parent de49269 commit 703122d

File tree

1 file changed

+61
-3
lines changed

1 file changed

+61
-3
lines changed

.editorconfig

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,71 @@
1+
# Remove the line below if you want to inherit .editorconfig settings from higher directories
2+
root = true
3+
14
[*]
25
end_of_line = crlf
36

7+
[*.md]
8+
trim_trailing_whitespace = false
9+
410
[*.xml]
511
indent_style = space
612

13+
[*.yml]
14+
indent_style = space
15+
tab_width = 2
16+
trim_trailing_whitespace = true
17+
18+
[*.json]
19+
tab_width = 4
20+
indent_size = 4
21+
indent_style = space
22+
insert_final_newline = true
23+
24+
[*.csproj]
25+
tab_width = 2
26+
indent_size = 2
27+
28+
[*.props]
29+
tab_width = 2
30+
indent_size = 2
31+
732
[*.cs]
8-
dotnet_sort_system_directives_first = true
933
indent_style = space
1034
indent_size = 4
11-
insert_final_newline = false
35+
insert_final_newline = true
1236
trim_trailing_whitespace = true
13-
charset = utf-8-bom
37+
dotnet_sort_system_directives_first = true
38+
charset = utf-8-bom
39+
csharp_using_directive_placement = outside_namespace:suggestion
40+
41+
#### C# Code Analyzers ####
42+
43+
# CS0612: Type or member is obsolete
44+
dotnet_diagnostic.CS0612.severity = silent
45+
46+
# CS0618: Type or member is obsolete
47+
dotnet_diagnostic.CS0618.severity = silent
48+
49+
# CS8600: Converting null literal or possible null value to non-nullable type.
50+
dotnet_diagnostic.CS8600.severity = silent
51+
52+
# CS8601: Possible null reference assignment.
53+
dotnet_diagnostic.CS8601.severity = silent
54+
55+
# CS8602: Dereference of a possibly null reference.
56+
dotnet_diagnostic.CS8602.severity = silent
57+
58+
# CS8603: Possible null reference return.
59+
dotnet_diagnostic.CS8603.severity = silent
60+
61+
# CS8604: Possible null reference argument.
62+
dotnet_diagnostic.CS8604.severity = silent
63+
64+
# CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
65+
dotnet_diagnostic.CS8618.severity = silent
66+
67+
# CS8625: Cannot convert null literal to non-nullable reference type.
68+
dotnet_diagnostic.CS8625.severity = silent
69+
70+
# CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
71+
dotnet_diagnostic.CS8632.severity = silent

0 commit comments

Comments
 (0)