Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 319 lines (296 sloc) 11.978 kB
f6990fd @tclem add basic resharper settings
tclem authored
1 <CodeStyleSettings>
2 <CSharp>
3 <FormatSettings>
df04d9d @nulltoken Enforce code style
nulltoken authored
4 <FORCE_FIXED_BRACES_STYLE>ALWAYS_ADD</FORCE_FIXED_BRACES_STYLE>
5 <FORCE_FOR_BRACES_STYLE>ALWAYS_ADD</FORCE_FOR_BRACES_STYLE>
6 <FORCE_FOREACH_BRACES_STYLE>ALWAYS_ADD</FORCE_FOREACH_BRACES_STYLE>
7 <FORCE_IFELSE_BRACES_STYLE>ALWAYS_ADD</FORCE_IFELSE_BRACES_STYLE>
8 <FORCE_WHILE_BRACES_STYLE>ALWAYS_ADD</FORCE_WHILE_BRACES_STYLE>
f6990fd @tclem add basic resharper settings
tclem authored
9 <KEEP_BLANK_LINES_IN_CODE>1</KEEP_BLANK_LINES_IN_CODE>
10 <KEEP_BLANK_LINES_IN_DECLARATIONS>1</KEEP_BLANK_LINES_IN_DECLARATIONS>
df04d9d @nulltoken Enforce code style
nulltoken authored
11 <LINE_FEED_AT_FILE_END>True</LINE_FEED_AT_FILE_END>
f6990fd @tclem add basic resharper settings
tclem authored
12 <MODIFIERS_ORDER IsNull="False">
13 <Item>public</Item>
14 <Item>protected</Item>
15 <Item>internal</Item>
16 <Item>private</Item>
17 <Item>new</Item>
18 <Item>abstract</Item>
19 <Item>virtual</Item>
20 <Item>override</Item>
21 <Item>sealed</Item>
22 <Item>static</Item>
23 <Item>readonly</Item>
24 <Item>extern</Item>
25 <Item>unsafe</Item>
26 <Item>volatile</Item>
27 </MODIFIERS_ORDER>
df04d9d @nulltoken Enforce code style
nulltoken authored
28 <PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE>False</PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE>
29 <SPACE_AFTER_TYPECAST_PARENTHESES>False</SPACE_AFTER_TYPECAST_PARENTHESES>
30 <SPACE_BEFORE_TYPEOF_PARENTHESES>False</SPACE_BEFORE_TYPEOF_PARENTHESES>
31 <SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES>True</SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES>
f6990fd @tclem add basic resharper settings
tclem authored
32 <WRAP_LINES>False</WRAP_LINES>
33 </FormatSettings>
34 <UsingsSettings />
35 <Naming2>
36 <EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
37 <EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
38 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" />
39 <PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
40 <PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
41 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" />
42 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" />
43 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" />
44 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
45 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
46 <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields" />
47 <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
48 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" />
49 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants" />
50 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
51 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly" />
52 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
53 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
54 </Naming2>
55 <CustomMemberReorderingPatterns><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
56
57 <!--
58 I. Overall
59
60 I.1 Each pattern can have <Match>....</Match> element. For the given type declaration, the pattern with the match, evaluated to 'true' with the largest weight, will be used
61 I.2 Each pattern consists of the sequence of <Entry>...</Entry> elements. Type member declarations are distributed between entries
62 I.3 If pattern has RemoveAllRegions="true" attribute, then all regions will be cleared prior to reordering. Otherwise, only auto-generated regions will be cleared
63 I.4 The contents of each entry is sorted by given keys (First key is primary, next key is secondary, etc). Then the declarations are grouped and en-regioned by given property
64
65 II. Available match operands
66
67 Each operand may have Weight="..." attribute. This weight will be added to the match weight if the operand is evaluated to 'true'.
68 The default weight is 1
69
70 II.1 Boolean functions:
71 II.1.1 <And>....</And>
72 II.1.2 <Or>....</Or>
73 II.1.3 <Not>....</Not>
74
75 II.2 Operands
76 II.2.1 <Kind Is="..."/>. Kinds are: class, struct, interface, enum, delegate, type, constructor, destructor, property, indexer, method, operator, field, constant, event, member
77 II.2.2 <Name Is="..." [IgnoreCase="true/false"] />. The 'Is' attribute contains regular expression
78 II.2.3 <HasAttribute CLRName="..." [Inherit="true/false"] />. The 'CLRName' attribute contains regular expression
79 II.2.4 <Access Is="..."/>. The 'Is' values are: public, protected, internal, protected internal, private
80 II.2.5 <Static/>
81 II.2.6 <Abstract/>
82 II.2.7 <Virtual/>
83 II.2.8 <Override/>
84 II.2.9 <Sealed/>
85 II.2.10 <Readonly/>
86 II.2.11 <ImplementsInterface CLRName="..."/>. The 'CLRName' attribute contains regular expression
87 II.2.12 <HandlesEvent />
88 -->
89
90 <Patterns xmlns="urn:shemas-jetbrains-com:member-reordering-patterns">
91
92 <!--Do not reorder COM interfaces and structs marked by StructLayout attribute-->
93 <Pattern>
94 <Match>
95 <Or Weight="100">
96 <And>
97 <Kind Is="interface"/>
98 <Or>
99 <HasAttribute CLRName="System.Runtime.InteropServices.InterfaceTypeAttribute"/>
100 <HasAttribute CLRName="System.Runtime.InteropServices.ComImport"/>
101 </Or>
102 </And>
103 <HasAttribute CLRName="System.Runtime.InteropServices.StructLayoutAttribute"/>
104 </Or>
105 </Match>
106 </Pattern>
107
108 <!--Special formatting of NUnit test fixture-->
109 <Pattern RemoveAllRegions="true">
110 <Match>
111 <And Weight="100">
112 <Kind Is="class"/>
113 <HasAttribute CLRName="NUnit.Framework.TestFixtureAttribute" Inherit="true"/>
114 </And>
115 </Match>
116
117 <!--Setup/Teardow-->
118 <Entry>
119 <Match>
120 <And>
121 <Kind Is="method"/>
122 <Or>
123 <HasAttribute CLRName="NUnit.Framework.SetUpAttribute" Inherit="true"/>
124 <HasAttribute CLRName="NUnit.Framework.TearDownAttribute" Inherit="true"/>
125 <HasAttribute CLRName="NUnit.Framework.FixtureSetUpAttribute" Inherit="true"/>
126 <HasAttribute CLRName="NUnit.Framework.FixtureTearDownAttribute" Inherit="true"/>
127 </Or>
128 </And>
129 </Match>
130 <Group Region="Setup/Teardown"/>
131 </Entry>
132
133 <!--All other members-->
134 <Entry/>
135
136 <!--Test methods-->
137 <Entry>
138 <Match>
139 <And Weight="100">
140 <Kind Is="method"/>
141 <HasAttribute CLRName="NUnit.Framework.TestAttribute" Inherit="false"/>
142 </And>
143 </Match>
144 <Sort>
145 <Name/>
146 </Sort>
147 </Entry>
148 </Pattern>
149
150 <!--Default pattern-->
151 <Pattern>
152
153 <!--public delegate-->
154 <Entry>
155 <Match>
156 <And Weight="100">
157 <Access Is="public"/>
158 <Kind Is="delegate"/>
159 </And>
160 </Match>
161 <Sort>
162 <Name/>
163 </Sort>
164 <Group Region="Delegates"/>
165 </Entry>
166
167 <!--public enum-->
168 <Entry>
169 <Match>
170 <And Weight="100">
171 <Access Is="public"/>
172 <Kind Is="enum"/>
173 </And>
174 </Match>
175 <Sort>
176 <Name/>
177 </Sort>
178 <Group>
179 <Name Region="${Name} enum"/>
180 </Group>
181 </Entry>
182
183 <!--static fields and constants-->
184 <Entry>
185 <Match>
186 <Or>
187 <Kind Is="constant"/>
188 <And>
189 <Kind Is="field"/>
190 <Static/>
191 </And>
192 </Or>
193 </Match>
194 <Sort>
195 <Kind Order="constant field"/>
196 </Sort>
197 </Entry>
198
199 <!--instance fields-->
200 <Entry>
201 <Match>
202 <And>
203 <Kind Is="field"/>
204 <Not>
205 <Static/>
206 </Not>
207 </And>
208 </Match>
209 <Sort>
210 <Readonly/>
211 <Name/>
212 </Sort>
213 </Entry>
214
215 <!--Constructors. Place static one first-->
216 <Entry>
217 <Match>
218 <Kind Is="constructor"/>
219 </Match>
220 <Sort>
221 <Static/>
222 </Sort>
223 </Entry>
224
225 <!--properties, indexers-->
226 <Entry>
227 <Match>
228 <Or>
229 <Kind Is="property"/>
230 <Kind Is="indexer"/>
231 </Or>
232 </Match>
60b26a3 @tclem update resharper settings to sort properties
tclem authored
233 <Sort><Name/></Sort>
f6990fd @tclem add basic resharper settings
tclem authored
234 </Entry>
235
236 <!--interface implementations-->
237 <Entry>
238 <Match>
239 <And Weight="100">
240 <Kind Is="member"/>
241 <ImplementsInterface/>
242 </And>
243 </Match>
244 <Sort>
245 <ImplementsInterface Immediate="true"/>
246 </Sort>
247 <Group>
248 <ImplementsInterface Immediate="true" Region="${ImplementsInterface} Members"/>
249 </Group>
250 </Entry>
251
252 <!--all other members-->
253 <Entry><Sort><Name/></Sort></Entry>
254
255 <!--nested types-->
256 <Entry>
257 <Match>
258 <Kind Is="type"/>
259 </Match>
260 <Sort>
261 <Name/>
262 </Sort>
263 <Group>
264 <Name Region="Nested type: ${Name}"/>
265 </Group>
266 </Entry>
267 </Pattern>
268
269 </Patterns>
270 ]]></CustomMemberReorderingPatterns>
271 </CSharp>
272 <VB>
273 <FormatSettings />
274 <ImportsSettings />
275 <Naming2>
276 <EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
277 <EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
278 </Naming2>
279 </VB>
280 <Web>
df04d9d @nulltoken Enforce code style
nulltoken authored
281 <Naming2>
282 <UserRule Name="ASP_TAG_NAME" Inspect="True" Prefix="" Suffix="" Style="AaBb" />
283 <UserRule Name="ASP_TAG_PREFIX" Inspect="True" Prefix="" Suffix="" Style="AaBb" />
284 <UserRule Name="ASP_FIELD" Inspect="True" Prefix="" Suffix="" Style="AaBb" />
285 <UserRule Name="ASP_HTML_CONTROL" Inspect="True" Prefix="" Suffix="" Style="AaBb" />
286 </Naming2>
f6990fd @tclem add basic resharper settings
tclem authored
287 </Web>
288 <Xaml>
289 <Naming2>
290 <UserRule Name="XAML_FIELD" Inspect="True" Prefix="_" Suffix="" Style="aaBb" />
291 <UserRule Name="NAMESPACE_ALIAS" Inspect="True" Prefix="" Suffix="" Style="AaBb" />
292 <UserRule Name="XAML_RESOURCE" Inspect="True" Prefix="" Suffix="" Style="AaBb" />
293 </Naming2>
294 </Xaml>
295 <XML>
296 <FormatSettings />
297 </XML>
298 <GenerateMemberBody />
299 <Naming2>
300 <EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
301 <EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
302 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateStaticReadonly" />
303 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" />
304 <PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
305 <PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
306 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" />
307 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" />
308 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" />
309 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
310 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
311 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields" />
312 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
313 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" />
314 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateConstants" />
315 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
316 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
317 <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
318 </Naming2>
319 </CodeStyleSettings>
Something went wrong with that request. Please try again.