-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsharp-layout-stylecop.xml
343 lines (343 loc) · 8.75 KB
/
csharp-layout-stylecop.xml
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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<?xml version="1.0"?>
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern DisplayName="COM interfaces">
<TypePattern.Match>
<And>
<Kind Is="Interface" />
<Or>
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
</Or>
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="P/Invoke structs">
<TypePattern.Match>
<And>
<Or>
<Kind Is="Struct" />
<Kind Is="Class" />
</Or>
<HasAttribute Name="System.Runtime.InteropServices.StructLayoutAttribute" />
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="P/Invoke classes (xxxNativeMethods)">
<TypePattern.Match>
<And>
<Kind Is="Class" />
<Name Is=".*NativeMethods" />
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="DataMembers">
<TypePattern.Match>
<And>
<Or>
<Kind Is="Field" />
<Kind Is="Property" />
</Or>
<HasAttribute Name="System.Runtime.Serialization.DataMemberAttribute " />
</And>
</TypePattern.Match>
</TypePattern>
<TypePattern DisplayName="NUnit Test Fixtures">
<TypePattern.Match>
<And>
<Kind Is="Class" />
<HasAttribute Name="NUnit.Framework.TestFixtureAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.TestCaseFixtureAttribute" Inherited="True" />
</And>
</TypePattern.Match>
<Entry DisplayName="Setup/Teardown Methods">
<Entry.Match>
<And>
<Kind Is="Method" />
<Or>
<HasAttribute Name="NUnit.Framework.SetUpAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.TearDownAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.FixtureSetUpAttribute" Inherited="True" />
<HasAttribute Name="NUnit.Framework.FixtureTearDownAttribute" Inherited="True" />
</Or>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="All other members" />
<Entry Priority="100" DisplayName="Test Methods">
<Entry.Match>
<And>
<Kind Is="Method" />
<HasAttribute Name="NUnit.Framework.TestAttribute" />
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</TypePattern>
<TypePattern DisplayName="Style Cop Layout" RemoveRegions="All">
<TypePattern.Match>
<Or>
<Kind Is="Class" />
<Kind Is="Struct" />
<Kind Is="Interface" />
</Or>
</TypePattern.Match>
<Entry DisplayName="Public fields">
<Entry.Match>
<And>
<Or>
<Kind Is="Constant" />
<Kind Is="Field" />
</Or>
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private fields">
<Entry.Match>
<And>
<Or>
<Kind Is="Constant" />
<Kind Is="Field" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Constructors">
<Entry.Match>
<Kind Is="Constructor" />
</Entry.Match>
<Entry.SortBy>
<Access />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Finalizers (destructors)">
<Entry.Match>
<Kind Is="Destructor" />
</Entry.Match>
<Entry.SortBy>
<Access />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public delegates">
<Entry.Match>
<And>
<Kind Is="Delegate" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private delegates">
<Entry.Match>
<And>
<Kind Is="Delegate" />
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public events">
<Entry.Match>
<And>
<Kind Is="Event" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private events">
<Entry.Match>
<And>
<Kind Is="Event" />
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public enums">
<Entry.Match>
<And>
<Kind Is="Enum" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private enums">
<Entry.Match>
<Kind Is="Enum" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public interfaces">
<Entry.Match>
<And>
<Kind Is="Interface" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private interfaces">
<Entry.Match>
<Kind Is="Interface" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public properties">
<Entry.Match>
<And>
<Kind Is="Property" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private properties">
<Entry.Match>
<Kind Is="Property" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public indexers">
<Entry.Match>
<And>
<Kind Is="Indexer" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private indexers">
<Entry.Match>
<Kind Is="Indexer" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public methods" Priority="0">
<Entry.Match>
<And>
<Kind Is="Method" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
<ImplementsInterface />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private methods" Priority="0">
<Entry.Match>
<Kind Is="Method" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public structs">
<Entry.Match>
<And>
<Kind Is="Struct" />
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private structs">
<Entry.Match>
<Kind Is="Struct" />
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public classes">
<Entry.Match>
<Or>
<Access Is="Public" />
<Access Is="Protected" />
<Access Is="ProtectedInternal" />
</Or>
</Entry.Match>
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
<Entry DisplayName="Private classes (all other items)">
<Entry.SortBy>
<Name />
</Entry.SortBy>
</Entry>
</TypePattern>
</Patterns>