summaryrefslogtreecommitdiff
path: root/src/bindings/mono/ca.ruleset
blob: 41b45826f331f06a19946bf22c76811b785d9679 (plain)
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="CustomRulset" Description="Custom Rulset" ToolsVersion="14.0">
	<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
		<!-- Do not declare static members on Generic Types --> 
		<Rule Id="CA1000" Action="None"/>
		<!-- Consider making Raise an event --> 
		<Rule Id="CA1030" Action="None"/>
		<!-- Catch generic exception -->
		<Rule Id="CA1031" Action="None"/>
		<!-- Add extra exception constructors --> 
		<Rule Id="CA1032" Action="None"/>
		<!-- Do not nest NativeTypes --> 
		<Rule Id="CA1034" Action="None"/>
		<!-- IComparable must implement other comparison operators --> 
		<Rule Id="CA1036" Action="None"/>
		<!-- Avoid empty interface --> 
		<Rule Id="CA1040" Action="None"/>
		<!-- Consider making property with getter --> 
		<Rule Id="CA1044" Action="None"/>
		<!-- Visible instance fields -->
		<Rule Id="CA1051" Action="None"/>
		<!-- Static holder can be static -->
		<Rule Id="CA1052" Action="None"/>
		<!-- Using parameters before checking for null -->
		<Rule Id="CA1062" Action="None"/>
		<!-- Remove IDisposable as Object already has it -->
		<Rule Id="CA1063" Action="None"/>
		<!-- Exceptions must be public -->
		<Rule Id="CA1064" Action="None"/>
		<!-- Do not raise exception in unexpected locations -->
		<Rule Id="CA1065" Action="None"/>
		<!-- String localization -->
		<Rule Id="CA1303" Action="None"/>
		<!-- Specify IFormatProvider --> 
		<Rule Id="CA1305" Action="None"/>
		<!-- Specify Stringcomparison --> 
		<Rule Id="CA1307" Action="None"/>
		<!-- PInvoke should not be visible -->
		<Rule Id="CA1401" Action="None"/>
		<!-- Use nameof --> 
		<Rule Id="CA1507" Action="None"/>
		<!-- Parameter underscore -->
		<Rule Id="CA1707" Action="None"/>
		<!-- Attribute classes must have the Attribute Suffix --> 
		<Rule Id="CA1710" Action="None"/>
		<!-- Replace generic parameter with T -->
		<Rule Id="CA1715" Action="None"/>
		<!-- Parameter End conflicts with VB -->
		<Rule Id="CA1716" Action="None"/>
		<!-- Enum field must be plural -->
		<Rule Id="CA1717" Action="None"/>
		<!-- Variable has type name -->
		<Rule Id="CA1720" Action="None"/>
		<!-- Property with same name as getter -->
		<Rule Id="CA1721" Action="None"/>
		<!-- Type name must not match namespace -->
		<Rule Id="CA1724" Action="None"/>
		<!-- Unused parameter. Lots of warnings regarding Dispose(disposing) -->
		<Rule Id="CA1801" Action="None"/>
		<!-- Do not ignore function result -->
		<Rule Id="CA1806" Action="None"/>
		<!-- Remove static constructors -->
		<Rule Id="CA1810" Action="None"/>
		<!-- Realized classes are never instantiated --> 
		<Rule Id="CA1812" Action="None"/>
		<!-- Override equal and operator equal on Value Types--> 
		<Rule Id="CA1815" Action="None"/>
		<!-- Dispose must call SuppressFinalizers --> 
		<Rule Id="CA1816" Action="None"/>
		<!-- Member can be static -->
		<Rule Id="CA1822" Action="None"/>
		<!-- Consider zero length array allocation --> 
		<Rule Id="CA1825" Action="None"/>
		<!-- Use Count instead of Count() -->
		<Rule Id="CA1829" Action="None"/>
		<!-- Call dispose before going out of scope -->
		<Rule Id="CA2000" Action="None"/>
		<!-- Call ConfigureWait-->
		<Rule Id="CA2007" Action="None"/>
		<!-- PInvoke should specify string marshalling -->
		<Rule Id="CA2101" Action="None"/>
		<!-- Rethrow loses stack info -->
		<Rule Id="CA2200" Action="None"/>
		<!-- Declare static fields when they are declared and remove static constructor -->
		<Rule Id="CA2207" Action="None"/>
		<!-- Instantiate exception params correctly -->
		<Rule Id="CA2208" Action="None"/>
		<!-- Dot not call overrideable methods in constructors --> 
		<Rule Id="CA2214" Action="None"/>
		<!-- Replace implicit operator -->
		<Rule Id="CA2225" Action="None"/>



	</Rules>
	<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
		<!-- Ignore docs -->
		<Rule Id="SA0001" Action="None"/>

		<!-- 10** Spacing rules -->
		<Rule Id="SA1000" Action="None"/>
		<Rule Id="SA1001" Action="None"/>
		<Rule Id="SA1002" Action="None"/>
		<Rule Id="SA1003" Action="None"/>
		<!-- Documentation must start with single space -->
		<Rule Id="SA1004" Action="None"/>
		<Rule Id="SA1005" Action="None"/>
		<Rule Id="SA1006" Action="None"/>
		<Rule Id="SA1007" Action="None"/>
		<Rule Id="SA1008" Action="None"/>
		<Rule Id="SA1009" Action="None"/>
		<Rule Id="SA1010" Action="None"/>
		<Rule Id="SA1011" Action="None"/>
		<Rule Id="SA1012" Action="None"/>
		<Rule Id="SA1013" Action="None"/>
		<Rule Id="SA1014" Action="None"/>
		<Rule Id="SA1015" Action="None"/>
		<Rule Id="SA1016" Action="None"/>
		<Rule Id="SA1017" Action="None"/>
		<Rule Id="SA1018" Action="None"/>
		<Rule Id="SA1019" Action="None"/>
		<Rule Id="SA1020" Action="None"/>
		<Rule Id="SA1021" Action="None"/>
		<Rule Id="SA1022" Action="None"/>
		<Rule Id="SA1023" Action="None"/>
		<Rule Id="SA1024" Action="None"/>
		<Rule Id="SA1025" Action="None"/>
		<Rule Id="SA1026" Action="None"/>
		<Rule Id="SA1027" Action="None"/>
		<Rule Id="SA1028" Action="None"/>

		<!-- Readability -->
		<Rule Id="SA1100" Action="None"/>
		<Rule Id="SA1101" Action="None"/>
		<Rule Id="SA1102" Action="None"/>
		<Rule Id="SA1103" Action="None"/>
		<Rule Id="SA1104" Action="None"/>
		<Rule Id="SA1105" Action="None"/>
		<Rule Id="SA1106" Action="None"/>
		<Rule Id="SA1107" Action="None"/>
		<Rule Id="SA1108" Action="None"/>
		<Rule Id="SA1109" Action="None"/>
		<Rule Id="SA1110" Action="None"/>
		<Rule Id="SA1111" Action="None"/>
		<Rule Id="SA1112" Action="None"/>
		<Rule Id="SA1113" Action="None"/>
		<Rule Id="SA1114" Action="None"/>
		<Rule Id="SA1115" Action="None"/>
		<Rule Id="SA1116" Action="None"/>
		<Rule Id="SA1117" Action="None"/>
		<Rule Id="SA1118" Action="None"/>
		<Rule Id="SA1119" Action="None"/>
		<Rule Id="SA1120" Action="None"/>
		<Rule Id="SA1121" Action="None"/>
		<Rule Id="SA1122" Action="None"/>
		<Rule Id="SA1123" Action="None"/>
		<Rule Id="SA1124" Action="None"/>
		<Rule Id="SA1125" Action="None"/>
		<Rule Id="SA1126" Action="None"/>
		<Rule Id="SA1127" Action="None"/>
		<Rule Id="SA1128" Action="None"/>
		<Rule Id="SA1129" Action="None"/>
		<Rule Id="SA1130" Action="None"/>
		<Rule Id="SA1131" Action="None"/>
		<Rule Id="SA1132" Action="None"/>
		<Rule Id="SA1133" Action="None"/>
		<Rule Id="SA1134" Action="None"/>
		<Rule Id="SA1135" Action="None"/>
		<Rule Id="SA1136" Action="None"/>
		<Rule Id="SA1137" Action="None"/>
		<Rule Id="SA1138" Action="None"/>
		<Rule Id="SA1139" Action="None"/>

		<!-- 12** Ordering -->
		<!-- FIXME Check if this somehow affects docfx output -->
		<Rule Id="SA1200" Action="None"/>
		<Rule Id="SA1201" Action="None"/>
		<Rule Id="SA1202" Action="None"/>
		<Rule Id="SA1203" Action="None"/>
		<Rule Id="SA1204" Action="None"/>
		<Rule Id="SA1205" Action="None"/>
		<Rule Id="SA1206" Action="None"/>
		<Rule Id="SA1207" Action="None"/>
		<Rule Id="SA1208" Action="None"/>
		<Rule Id="SA1209" Action="None"/>
		<Rule Id="SA1210" Action="None"/>
		<Rule Id="SA1211" Action="None"/>
		<Rule Id="SA1212" Action="None"/>
		<Rule Id="SA1213" Action="None"/>
		<Rule Id="SA1214" Action="None"/>
		<Rule Id="SA1215" Action="None"/>
		<Rule Id="SA1216" Action="None"/>
		<Rule Id="SA1217" Action="None"/>

		<!-- 13**  Naming Rules -->
		<!-- Element start with upper case -->
		<Rule Id="SA1300" Action="None"/>
		<Rule Id="SA1301" Action="None"/>
		<!-- Interface start with I -->
		<Rule Id="SA1302" Action="None"/>
		<!-- Upper/lower score rules -->
		<Rule Id="SA1303" Action="None"/>
		<Rule Id="SA1304" Action="None"/>
		<Rule Id="SA1305" Action="None"/>
		<Rule Id="SA1306" Action="None"/>
		<Rule Id="SA1307" Action="None"/>
		<!-- Variable field prefixes -->
		<Rule Id="SA1308" Action="None"/>
		<Rule Id="SA1309" Action="None"/>
		<Rule Id="SA1310" Action="None"/>
		<Rule Id="SA1311" Action="None"/>
		<Rule Id="SA1312" Action="None"/> <!-- Variables, not part of public API -->
		<Rule Id="SA1313" Action="None"/>
		<Rule Id="SA1314" Action="None"/>

		<!-- 14** Maintainability -->
		<!-- Access modifier -->
		<Rule Id="SA1400" Action="None"/>
		<!-- Field must be private -->
		<Rule Id="SA1401" Action="None"/>
		<!-- File Must contain single class or namespace -->
		<Rule Id="SA1402" Action="None"/>
		<Rule Id="SA1403" Action="None"/>
		<!-- CodeAnalysis suppress does not have justification -->
		<Rule Id="SA1404" Action="None"/>
		<!-- Debug.Assert/Fail must provide a message -->
		<Rule Id="SA1405" Action="None"/>
		<Rule Id="SA1406" Action="None"/>
		<!-- Arithmetic/Conditional expression must declare precedence -->
		<Rule Id="SA1407" Action="None"/>
		<Rule Id="SA1408" Action="None"/>
		<!-- Remove unecessary code -->
		<Rule Id="SA1409" Action="None"/>
		<!-- Delegate/Attribute parentheses -->
		<Rule Id="SA1410" Action="None"/>
		<Rule Id="SA1411" Action="None"/>
		<!-- Utf8 file -->
		<Rule Id="SA1412" Action="None"/>
		<!-- Trailing commas multiline initializer -->
		<Rule Id="SA1413" Action="None"/>

		<!-- 15** Layout Rules -->
		<Rule Id="SA1500" Action="None"/>
		<Rule Id="SA1501" Action="None"/>
		<Rule Id="SA1502" Action="None"/>
		<Rule Id="SA1503" Action="None"/>
		<Rule Id="SA1504" Action="None"/>
		<Rule Id="SA1505" Action="None"/>
		<Rule Id="SA1506" Action="None"/>
		<Rule Id="SA1507" Action="None"/>
		<Rule Id="SA1508" Action="None"/>
		<Rule Id="SA1509" Action="None"/>
		<Rule Id="SA1510" Action="None"/>
		<Rule Id="SA1511" Action="None"/>
		<Rule Id="SA1512" Action="None"/>
		<Rule Id="SA1513" Action="None"/>
		<Rule Id="SA1514" Action="None"/>
		<Rule Id="SA1515" Action="None"/>
		<Rule Id="SA1516" Action="None"/>
		<Rule Id="SA1517" Action="None"/>
		<Rule Id="SA1518" Action="None"/>
		<Rule Id="SA1519" Action="None"/>
		<Rule Id="SA1520" Action="None"/>

		<!-- 16** Documentation rules -->
		<!-- Things must be documented -->
		<Rule Id="SA1600" Action="None"/>
		<Rule Id="SA1601" Action="None"/>
		<Rule Id="SA1602" Action="None"/>
		<!-- Valid xml in docs -->
		<Rule Id="SA1603" Action="None"/>
		<Rule Id="SA1604" Action="None"/>
		<Rule Id="SA1605" Action="None"/>
		<Rule Id="SA1606" Action="None"/>
		<Rule Id="SA1607" Action="None"/>
		<Rule Id="SA1608" Action="None"/>
		<Rule Id="SA1609" Action="None"/>
		<Rule Id="SA1610" Action="None"/>
		<Rule Id="SA1611" Action="None"/>
		<Rule Id="SA1612" Action="None"/>
		<Rule Id="SA1613" Action="None"/>
		<Rule Id="SA1614" Action="None"/>
		<Rule Id="SA1615" Action="None"/>
		<Rule Id="SA1616" Action="None"/>
		<Rule Id="SA1617" Action="None"/>
		<Rule Id="SA1618" Action="None"/>
		<Rule Id="SA1619" Action="None"/>
		<Rule Id="SA1620" Action="None"/>
		<Rule Id="SA1621" Action="None"/>
		<Rule Id="SA1622" Action="None"/>
		<Rule Id="SA1623" Action="None"/>
		<Rule Id="SA1624" Action="None"/>
		<Rule Id="SA1625" Action="None"/> <!-- Copy paste doc. May be problematic with generated code -->
		<Rule Id="SA1626" Action="None"/>
		<Rule Id="SA1627" Action="None"/>
		<Rule Id="SA1628" Action="None"/>
		<Rule Id="SA1629" Action="None"/>
		<Rule Id="SA1630" Action="None"/>
		<Rule Id="SA1631" Action="None"/>
		<Rule Id="SA1632" Action="None"/>
		<!-- File headers -->
		<Rule Id="SA1633" Action="None"/> 
		<Rule Id="SA1634" Action="None"/>
		<Rule Id="SA1635" Action="None"/>
		<Rule Id="SA1636" Action="None"/>
		<Rule Id="SA1637" Action="None"/>
		<Rule Id="SA1638" Action="None"/>
		<Rule Id="SA1639" Action="None"/>
		<Rule Id="SA1640" Action="None"/>
		<Rule Id="SA1641" Action="None"/>
		<!-- Constructor/Destructor -->
		<Rule Id="SA1642" Action="None"/>
		<Rule Id="SA1643" Action="None"/>
		<!-- File header -->
		<Rule Id="SA1644" Action="None"/> 
		<!-- Miscellaneous doc -->
		<Rule Id="SA1645" Action="None"/>
		<Rule Id="SA1646" Action="None"/>
		<Rule Id="SA1647" Action="None"/>
		<Rule Id="SA1648" Action="None"/>
		<!-- Filename must match file type -->
		<Rule Id="SA1649" Action="None"/>
		<!-- Spelling -->
		<Rule Id="SA1650" Action="None"/>
		<!-- Placeholder -->
		<Rule Id="SA1651" Action="None"/>
	</Rules>
</RuleSet>