-
Notifications
You must be signed in to change notification settings - Fork 3
/
.editorconfig
149 lines (115 loc) · 5.15 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# NOTE: Requires **VS2019 16.3** or later
# Code files
[*.{cs,vb}]
# New line preferences
end_of_line = crlf
insert_final_newline = true
csharp_style_var_elsewhere = true
csharp_style_var_for_built_in_types = true
csharp_style_var_when_type_is_apparent = true
dotnet_diagnostic.CA1032.severity = warning
dotnet_diagnostic.CA1711.severity = suggestion
dotnet_diagnostic.CA2000.severity = suggestion
dotnet_diagnostic.CA2007.severity = suggestion
dotnet_diagnostic.CA2201.severity = suggestion
dotnet_diagnostic.CA2215.severity = warning
# StyleCop - Special
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SpecialRules.md
dotnet_diagnostic.SA0001.severity = none
# StyleCop - Spacing
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SpacingRules.md
dotnet_diagnostic.SA1009.severity = suggestion
# StyleCop - Readability
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/ReadabilityRules.md
dotnet_diagnostic.SA1101.severity = none
dotnet_diagnostic.SA1200.severity = none
dotnet_diagnostic.SA1216.severity = none
dotnet_diagnostic.SA1217.severity = none
dotnet_diagnostic.SA1413.severity = none
dotnet_diagnostic.SA1502.severity = none
dotnet_diagnostic.SA1516.severity = none
# StyleCop - Documentation
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/DocumentationRules.md
dotnet_diagnostic.SA1600.severity = none
dotnet_diagnostic.SA1601.severity = none
dotnet_diagnostic.SA1602.severity = none
dotnet_diagnostic.SA1604.severity = none
dotnet_diagnostic.SA1605.severity = none
dotnet_diagnostic.SA1606.severity = none
dotnet_diagnostic.SA1607.severity = none
dotnet_diagnostic.SA1608.severity = none
dotnet_diagnostic.SA1610.severity = none
dotnet_diagnostic.SA1611.severity = none
dotnet_diagnostic.SA1612.severity = none
dotnet_diagnostic.SA1613.severity = none
dotnet_diagnostic.SA1614.severity = none
dotnet_diagnostic.SA1615.severity = none
dotnet_diagnostic.SA1616.severity = none
dotnet_diagnostic.SA1617.severity = none
dotnet_diagnostic.SA1618.severity = none
dotnet_diagnostic.SA1619.severity = none
dotnet_diagnostic.SA1620.severity = none
dotnet_diagnostic.SA1621.severity = none
dotnet_diagnostic.SA1622.severity = none
dotnet_diagnostic.SA1623.severity = none
dotnet_diagnostic.SA1624.severity = none
dotnet_diagnostic.SA1625.severity = none
dotnet_diagnostic.SA1626.severity = none
dotnet_diagnostic.SA1627.severity = none
dotnet_diagnostic.SA1629.severity = none
dotnet_diagnostic.SA1633.severity = none
dotnet_diagnostic.SA1634.severity = none
dotnet_diagnostic.SA1635.severity = none
dotnet_diagnostic.SA1636.severity = none
dotnet_diagnostic.SA1637.severity = none
dotnet_diagnostic.SA1638.severity = none
dotnet_diagnostic.SA1640.severity = none
dotnet_diagnostic.SA1641.severity = none
dotnet_diagnostic.SA1642.severity = none
dotnet_diagnostic.SA1643.severity = none
dotnet_diagnostic.SA1648.severity = none
# StyleCop - Alternative
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/AlternativeRules.md
dotnet_diagnostic.SX1101.severity = warning
dotnet_diagnostic.SX1309.severity = warning
dotnet_diagnostic.SA1309.severity = none
# Roslynator
dotnet_diagnostic.RCS1037.severity = none # Redundant with SA1028
dotnet_diagnostic.RCS1194.severity = none # Redundant with CA1032
# To discuss, remove to enable:
# IDE0058: Expression value is never used
dotnet_diagnostic.IDE0058.severity = none
# CA1806: Do not ignore method results
dotnet_diagnostic.CA1806.severity = none
# SA1005: Single line comments should begin with single space
dotnet_diagnostic.SA1005.severity = suggestion
# SA1108: Block statements should not contain embedded comments
dotnet_diagnostic.SA1108.severity = suggestion
# SA1122: Use string.Empty for empty strings
dotnet_diagnostic.SA1122.severity = suggestion
# SA1127: Generic type constraints should be on their own line
dotnet_diagnostic.SA1127.severity = suggestion
# SA1128: Put constructor initializers on their own line
dotnet_diagnostic.SA1128.severity = suggestion
# SA1201: Elements should appear in the correct order
dotnet_diagnostic.SA1201.severity = suggestion
# SA1202: Elements should be ordered by access
dotnet_diagnostic.SA1202.severity = suggestion
# SA1204: Static elements should appear before instance elements
dotnet_diagnostic.SA1204.severity = suggestion
# SA1214: Readonly fields should appear before non-readonly fields
dotnet_diagnostic.SA1214.severity = suggestion
# SA1408: Conditional expressions should declare precedence
dotnet_diagnostic.SA1408.severity = suggestion
# SA1503: Braces should not be omitted
dotnet_diagnostic.SA1503.severity = suggestion
# SA1512: Single-line comments should not be followed by blank line
dotnet_diagnostic.SA1512.severity = suggestion
# SA1515: Single-line comment should be preceded by blank line
dotnet_diagnostic.SA1515.severity = suggestion
# SA1519: Braces should not be omitted from multi-line child statement
dotnet_diagnostic.SA1519.severity = suggestion
# RCS1139: Add summary element to documentation comment.
dotnet_diagnostic.RCS1139.severity = suggestion
# RCS1181: Convert comment to documentation comment.
dotnet_diagnostic.RCS1181.severity = none