-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
60 lines (51 loc) · 3.35 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
root = true
[*]
charset = utf-8
indent_style = space
trim_trailing_whitespace = true
indent_size = 4
insert_final_newline = true
end_of_line = crlf
[*.sln]
indent_style = tab
[*.{csproj,json,md,props,targets}]
indent_size = 2
insert_final_newline = false
[*.DotSettings]
end_of_line = lf
insert_final_newline = false
dotnet_style_qualification_for_event = true:warning
dotnet_style_qualification_for_field = true:warning
dotnet_style_qualification_for_method = true:warning
dotnet_style_qualification_for_property = true:warning
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
[*.cs]
dotnet_analyzer_diagnostic.severity = warning # By default, all results are treated as warnings
dotnet_diagnostic.IDE0008.severity = none # we want to use var
dotnet_diagnostic.IDE0022.severity = none # expression bodies can increase readability
dotnet_diagnostic.IDE0046.severity = none # if "simplification" is not always more readable
dotnet_diagnostic.IDE0058.severity = none # using discards like so "_ = SomethingThatDoesASideEffectButAlsoReturnsAValueWeDontNeed()", leads to too much noise
dotnet_diagnostic.IDE0065.severity = none # we want to use file scoped namespaces
dotnet_diagnostic.IDE0074.severity = none # compound assignment operator (?=) can cause lot's of confusion because it does 2 different things: assignment and bool predicate
dotnet_diagnostic.IDE0160.severity = none # we want to use file scoped namespaces
dotnet_diagnostic.IDE0290.severity = none # primary constructors are no drop-in replacement for single ctor classes. Primary ctor "parameters" are mutable in methods, whereas "normal" ctor parameters can become readonly fields.
dotnet_diagnostic.SA0001.severity = none # we do not generate xml documentation based on code documentation.
dotnet_diagnostic.SA1135.severity = none # we do not use fully qualified directives
dotnet_diagnostic.SA1201.severity = none # method ordering
dotnet_diagnostic.SA1402.severity = none # files with multiple related classes/records make more sense than spreading them out
dotnet_diagnostic.SA1600.severity = none # documentation on method level does not always make sense
dotnet_diagnostic.SA1601.severity = none # documentation on partial classes does not always make sense
dotnet_diagnostic.SA1602.severity = none # documentation on enums does not always make sense
dotnet_diagnostic.SA1611.severity = none # documentation parameters does not always make sense
dotnet_diagnostic.SA1615.severity = none # documentation for all parameters does not always make sense
dotnet_diagnostic.SA1623.severity = none # not all of our documentation is english
dotnet_diagnostic.SA1629.severity = none # not all of our documentation is english
dotnet_diagnostic.SA1633.severity = none # produces unnecessary noise
dotnet_diagnostic.SA1636.severity = none # copyright header noise
dotnet_diagnostic.SA1649.severity = none # if a file contains multiple classes / types it's name cannot match all of them
dotnet_diagnostic.CA1707.severity = none # underscores can make test methods more readable
dotnet_diagnostic.CA1859.severity = none #
dotnet_diagnostic.CA1062.severity = none # We do not always check input parameters
dotnet_diagnostic.CS1591.severity = none # Missing XML comment for publicly visible type or member