Skip to content
Newer
Older
100644 421 lines (401 sloc) 16.4 KB
b38c2f0 @jgoz Add StyleCop and ReSharper settings.
jgoz authored
1 <Configuration>
2 <CodeStyleSettings>
3 <ExternalPath IsNull="False">
4 </ExternalPath>
5 <Sharing>SOLUTION</Sharing>
6 <CSharp>
7 <FormatSettings>
8 <ALIGN_MULTILINE_ARGUMENT>False</ALIGN_MULTILINE_ARGUMENT>
9 <ALIGN_MULTILINE_ARRAY_AND_OBJECT_INITIALIZER>False</ALIGN_MULTILINE_ARRAY_AND_OBJECT_INITIALIZER>
10 <ANONYMOUS_METHOD_DECLARATION_BRACES>END_OF_LINE</ANONYMOUS_METHOD_DECLARATION_BRACES>
11 <BLANK_LINES_AROUND_SINGLE_LINE_INVOCABLE>1</BLANK_LINES_AROUND_SINGLE_LINE_INVOCABLE>
12 <CASE_BLOCK_BRACES>END_OF_LINE</CASE_BLOCK_BRACES>
13 <INDENT_ANONYMOUS_METHOD_BLOCK>False</INDENT_ANONYMOUS_METHOD_BLOCK>
14 <INDENT_EMBRACED_INITIALIZER_BLOCK>False</INDENT_EMBRACED_INITIALIZER_BLOCK>
15 <INITIALIZER_BRACES>END_OF_LINE</INITIALIZER_BRACES>
16 <INVOCABLE_DECLARATION_BRACES>END_OF_LINE</INVOCABLE_DECLARATION_BRACES>
17 <KEEP_BLANK_LINES_IN_CODE>1</KEEP_BLANK_LINES_IN_CODE>
18 <KEEP_BLANK_LINES_IN_DECLARATIONS>1</KEEP_BLANK_LINES_IN_DECLARATIONS>
19 <KEEP_USER_LINEBREAKS>False</KEEP_USER_LINEBREAKS>
20 <MODIFIERS_ORDER IsNull="False">
21 <Item>public</Item>
22 <Item>protected</Item>
23 <Item>internal</Item>
24 <Item>private</Item>
25 <Item>static</Item>
26 <Item>new</Item>
27 <Item>abstract</Item>
28 <Item>virtual</Item>
29 <Item>override</Item>
30 <Item>sealed</Item>
31 <Item>readonly</Item>
32 <Item>extern</Item>
33 <Item>unsafe</Item>
34 <Item>volatile</Item>
35 </MODIFIERS_ORDER>
36 <OTHER_BRACES>END_OF_LINE</OTHER_BRACES>
37 <PLACE_CONSTRUCTOR_INITIALIZER_ON_SAME_LINE>False</PLACE_CONSTRUCTOR_INITIALIZER_ON_SAME_LINE>
38 <PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE>False</PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE>
39 <PLACE_TYPE_CONSTRAINTS_ON_SAME_LINE>False</PLACE_TYPE_CONSTRAINTS_ON_SAME_LINE>
40 <PLACE_WHILE_ON_NEW_LINE>True</PLACE_WHILE_ON_NEW_LINE>
41 <SPACE_AFTER_TYPECAST_PARENTHESES>False</SPACE_AFTER_TYPECAST_PARENTHESES>
42 <SPACE_AROUND_MULTIPLICATIVE_OP>True</SPACE_AROUND_MULTIPLICATIVE_OP>
43 <SPACE_BEFORE_SIZEOF_PARENTHESES>False</SPACE_BEFORE_SIZEOF_PARENTHESES>
44 <SPACE_BEFORE_TYPEOF_PARENTHESES>False</SPACE_BEFORE_TYPEOF_PARENTHESES>
45 <SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES>True</SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES>
46 <STICK_COMMENT>False</STICK_COMMENT>
47 <TYPE_DECLARATION_BRACES>END_OF_LINE</TYPE_DECLARATION_BRACES>
48 <WRAP_AFTER_DECLARATION_LPAR>True</WRAP_AFTER_DECLARATION_LPAR>
49 <WRAP_AFTER_INVOCATION_LPAR>True</WRAP_AFTER_INVOCATION_LPAR>
50 <WRAP_ARGUMENTS_STYLE>CHOP_IF_LONG</WRAP_ARGUMENTS_STYLE>
51 <WRAP_BEFORE_BINARY_OPSIGN>True</WRAP_BEFORE_BINARY_OPSIGN>
52 <WRAP_BEFORE_FIRST_TYPE_PARAMETER_CONSTRAINT>True</WRAP_BEFORE_FIRST_TYPE_PARAMETER_CONSTRAINT>
53 <WRAP_EXTENDS_LIST_STYLE>CHOP_IF_LONG</WRAP_EXTENDS_LIST_STYLE>
54 <WRAP_LINES>False</WRAP_LINES>
55 <WRAP_PARAMETERS_STYLE>CHOP_IF_LONG</WRAP_PARAMETERS_STYLE>
56 </FormatSettings>
57 <UsingsSettings>
58 <AddImportsToDeepestScope>True</AddImportsToDeepestScope>
59 <QualifiedUsingAtNestedScope>True</QualifiedUsingAtNestedScope>
60 </UsingsSettings>
61 <Naming2>
62 <EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
63 <EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
64 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" />
65 <PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
66 <PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
67 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" />
68 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" />
69 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" />
70 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
71 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
72 <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields" />
73 <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
74 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" />
75 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants" />
76 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
77 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly" />
78 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
79 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
80 <Abbreviation Text="MQ" />
81 </Naming2>
82 <CustomMemberReorderingPatterns><![CDATA[<?xml version="1.0" encoding="utf-8"?>
83 <Patterns xmlns="urn:shemas-jetbrains-com:member-reordering-patterns">
84
85 <!-- Do not reorder COM interfaces -->
86 <Pattern>
87 <Match>
88 <And Weight="2000">
89 <Kind Is="interface"/>
90 <HasAttribute CLRName="System.Runtime.InteropServices.InterfaceTypeAttribute"
91 Inherit="true"/>
92 </And>
93 </Match>
94 </Pattern>
95
96 <!-- Do not reorder P/Invoke structs -->
97 <Pattern>
98 <Match>
99 <And Weight="2000">
100 <Or>
101 <Kind Is="struct"/>
102 <Kind Is="class"/>
103 </Or>
104 <HasAttribute CLRName="System.Runtime.InteropServices.StructLayoutAttribute"
105 Inherit="true"/>
106 </And>
107 </Match>
108 </Pattern>
109
110 <!-- Do not reorder P/Invoke classes (called xxxNativeMethods) -->
111 <Pattern>
112 <Match>
113 <And Weight="2000">
114 <Kind Is="class"/>
115 <Name Is=".*NativeMethods" />
116 </And>
117 </Match>
118 </Pattern>
119
120 <!-- StyleCop pattern -->
121 <Pattern RemoveAllRegions="true">
122 <Match>
123 <Or Weight="1000" >
124 <Kind Is="class" />
125 <Kind Is="struct" />
126 <Kind Is="interface"/>
127 </Or>
128 </Match>
129
130 <!-- constants and fields -->
131 <Entry>
132 <Match>
133 <Or>
134 <Kind Is="constant"/>
135 <Kind Is="field"/>
136 </Or>
137 </Match>
138 <Sort>
139 <Access Order="public internal protected-internal protected private"/>
140 <Kind Order="constant field"/>
141 <Readonly/>
142 <Static/>
143 <Name/>
144 </Sort>
145 <Group Region="Constants and Fields"/>
146 </Entry>
147
148 <!-- constructors -->
149 <Entry>
150 <Match>
151 <Or Weight="200">
152 <Kind Is="constructor"/>
153 <Kind Is="destructor"/>
154 </Or>
155 </Match>
156 <Sort>
157 <Static/>
158 <Kind Order="constructor destructor"/>
159 <Access Order="public internal protected-internal protected private"/>
160 </Sort>
161 <Group Region="Constructors and Destructors"/>
162 </Entry>
163
164 <!-- delegates -->
165 <Entry>
166 <Match>
167 <Kind Is="delegate"/>
168 </Match>
169 <Sort>
170 <Access Order="public internal protected-internal protected private" />
171 <Static />
172 <Name/>
173 </Sort>
174 <Group Region="Delegates"/>
175 </Entry>
176
177 <!-- events -->
178 <Entry>
179 <Match>
180 <Kind Is="event"/>
181 </Match>
182 <Sort>
183 <Access Order="public internal protected-internal protected private" />
184 <Static />
185 <Name/>
186 </Sort>
187 <Group Region="Events"/>
188 </Entry>
189
190 <!-- enum -->
191 <Entry>
192 <Match>
193 <Kind Is="enum"/>
194 </Match>
195 <Sort>
196 <Access Order="public internal protected-internal protected private" />
197 <Name/>
198 </Sort>
199 <Group Region="Enums"/>
200 </Entry>
201
202 <!-- interfaces -->
203 <Entry>
204 <Match>
205 <Kind Is="interface" />
206 </Match>
207 <Sort>
208 <Access Order="public internal protected-internal protected private" />
209 <Name/>
210 </Sort>
211 <Group Region="Interfaces"/>
212 </Entry>
213
214 <!-- properties -->
215 <Entry>
216 <Match>
217 <Kind Is="property"/>
218 </Match>
219 <Sort>
220 <Access Order="public internal protected-internal protected private"/>
221 <Static/>
222 <Name/>
223 </Sort>
224 <Group Region="Properties"/>
225 </Entry>
226
227 <!-- indexers -->
228 <Entry>
229 <Match>
230 <Kind Is="indexer"
231 Weight="300" />
232 </Match>
233 <Sort>
234 <Access Order="public internal protected-internal protected private" />
235 <Static/>
236 <Name/>
237 </Sort>
238 <Group Region="Indexers"/>
239 </Entry>
240
241 <!-- operator -->
242 <Entry>
243 <Match>
244 <Kind Is="operator"/>
245 </Match>
246 <Sort>
247 <Access Order="public internal protected-internal protected private" />
248 <Static/>
249 <Name/>
250 </Sort>
251 <Group Region="Operators"/>
252 </Entry>
253
254 <!-- public methods -->
255 <Entry>
256 <Match>
257 <And>
258 <Kind Is="method"/>
259 <Access Is="public"/>
260 </And>
261 </Match>
262 <Sort>
263 <Access Order="public"/>
264 <Static/>
265 <Name/>
266 </Sort>
267 <Group Region="Public Methods"/>
268 </Entry>
269
270 <!-- Implemented Interfaces -->
271 <Entry>
272 <Match>
273 <And Weight="500">
274 <Kind Is="method"/>
275 <ImplementsInterface CLRName=".*"/>
276 </And>
277 </Match>
278 <Sort>
279 <ImplementsInterface />
280 <Access Order="public internal protected-internal protected private"/>
281 <Static/>
282 <Name/>
283 </Sort>
284 <Group Region="Implemented Interfaces">
285 <ImplementsInterface Region="${ImplementsInterface}" />
286 </Group>
287 </Entry>
288
289 <!-- other methods -->
290 <Entry>
291 <Match>
292 <Kind Is="method"/>
293 </Match>
294 <Sort>
295 <Access Order="public internal protected-internal protected private"/>
296 <Static/>
297 <Name/>
298 </Sort>
299 <Group Region="Methods"/>
300 </Entry>
301
302 <!-- Nested structs -->
303 <Entry>
304 <Match>
305 <Kind Is="struct"
306 Weight="600" />
307 </Match>
308 <Sort>
309 <Static />
310 <Access Order="public internal protected-internal protected private" />
311 <Name/>
312 </Sort>
313 </Entry>
314
315 <!-- Nested classes -->
316 <Entry>
317 <Match>
318 <Kind Is="class"
319 Weight="700" />
320 </Match>
321 <Sort>
322 <Static />
323 <Access Order="public internal protected-internal protected private" />
324 <Name/>
325 </Sort>
326 </Entry>
327
328 <!-- all other members -->
329 <Entry/>
330
331 </Pattern>
332 </Patterns>
333 ]]></CustomMemberReorderingPatterns>
334 </CSharp>
335 <VB>
336 <FormatSettings />
337 <ImportsSettings />
338 <Naming2>
339 <EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
340 <EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
341 </Naming2>
342 </VB>
343 <Web>
344 <Naming2 />
345 </Web>
346 <Xaml>
347 <Naming2 />
348 </Xaml>
349 <XML>
350 <FormatSettings />
351 </XML>
352 <GenerateMemberBody />
353 <Naming2>
354 <EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
355 <EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
356 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent">
357 <ExtraRule Prefix="_" Suffix="" Style="AaBb" />
358 </PredefinedRule>
359 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces">
360 <ExtraRule Prefix="" Suffix="" Style="AA_BB" />
361 </PredefinedRule>
362 <PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
363 <PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
364 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals">
365 <ExtraRule Prefix="" Suffix="" Style="aa_bb" />
366 </PredefinedRule>
367 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants">
368 <ExtraRule Prefix="" Suffix="" Style="AaBb" />
369 </PredefinedRule>
370 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters">
371 <ExtraRule Prefix="" Suffix="" Style="aa_bb" />
372 </PredefinedRule>
373 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
374 <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields">
375 <ExtraRule Prefix="" Suffix="" Style="aaBb" />
376 <ExtraRule Prefix="" Suffix="" Style="AA_BB" />
377 </PredefinedRule>
378 <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
379 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants">
380 <ExtraRule Prefix="" Suffix="" Style="AA_BB" />
381 </PredefinedRule>
382 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants">
383 <ExtraRule Prefix="" Suffix="" Style="AA_BB" />
384 </PredefinedRule>
385 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
386 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly">
387 <ExtraRule Prefix="_" Suffix="" Style="aaBb" />
388 </PredefinedRule>
389 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember">
390 <ExtraRule Prefix="" Suffix="" Style="AA_BB" />
391 </PredefinedRule>
392 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
a5367e8 @jgoz Update resharper settings for MSpec.
jgoz authored
393 <UserRule Inspect="True" Prefix="" Suffix="" Style="AaBb" StaticnessKind="Static, Instance" AccessRight="Private, Protected, ProtectedInternal, Internal, Public" Description="">
394 <ElementKinds>
395 <Kind Name="CLASS" />
396 <Kind Name="Machine.Specifications_Behavior" />
397 <Kind Name="Machine.Specifications_Context" />
398 <Kind Name="Machine.Specifications_ContextBase" />
399 <Kind Name="Machine.Specifications_Specification" />
400 <Kind Name="Machine.Specifications_SupportingField" />
401 <Kind Name="Machine.Specifications_Constant" />
402 </ElementKinds>
403 <ExtraRule Prefix="" Suffix="" Style="aa_bb" />
404 </UserRule>
405 <UserRule Inspect="True" Prefix="" Suffix="" Style="aaBb" StaticnessKind="Static, Instance" AccessRight="Private, Protected, ProtectedInternal, Internal, Public" Description="">
406 <ElementKinds>
407 <Kind Name="Machine.Specifications_Field" />
408 <Kind Name="Machine.Specifications_Local" />
409 </ElementKinds>
410 <ExtraRule Prefix="" Suffix="" Style="AaBb" />
411 </UserRule>
b38c2f0 @jgoz Add StyleCop and ReSharper settings.
jgoz authored
412 <Abbreviation Text="MQ" />
413 <Abbreviation Text="ZMQ" />
414 <Abbreviation Text="IO" />
415 <Abbreviation Text="ID" />
416 <Abbreviation Text="HWM" />
417 <Abbreviation Text="FD" />
418 <Abbreviation Text="UUID" />
419 </Naming2>
420 </CodeStyleSettings>
421 </Configuration>
Something went wrong with that request. Please try again.