2
0

.editorconfig_soon 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235
  1. // Avoid looking for .editorconfig files in parent directories
  2. root=true
  3. [*]
  4. insert_final_newline = true
  5. indent_style = space
  6. indent_size = 4
  7. tab_width = 4
  8. end_of_line = crlf
  9. [*.cs]
  10. #### Sonar rules ####
  11. # S101: Types should be named in PascalCase
  12. # https://rules.sonarsource.com/csharp/RSPEC-101
  13. #
  14. # TODO: Remove this when code has been updated!
  15. dotnet_diagnostic.S101.severity = none
  16. # S112: General exceptions should never be thrown
  17. # https://rules.sonarsource.com/csharp/RSPEC-112
  18. #
  19. # This is a duplicate of CA2201 and MA0012.
  20. dotnet_diagnostic.S112.severity = none
  21. # S907: Remove use of 'goto'
  22. # https://rules.sonarsource.com/csharp/RSPEC-907
  23. #
  24. # Limited use of 'goto' is accepted when performance is critical.
  25. dotnet_diagnostic.S907.severity = none
  26. # S1066: Collapsible "if" statements should be merged
  27. # https://rules.sonarsource.com/csharp/RSPEC-1066
  28. #
  29. dotnet_diagnostic.S1066.severity = none
  30. # S1075: URIs should not be hardcoded
  31. # https://rules.sonarsource.com/csharp/RSPEC-1075
  32. #
  33. # The rule reports false positives for XML namespaces.
  34. dotnet_diagnostic.S1075.severity = none
  35. # S1104: Fields should not have public accessibility
  36. # https://rules.sonarsource.com/csharp/RSPEC-1104
  37. #
  38. # This is a duplicate of SA1401 and CA1051.
  39. dotnet_diagnostic.S1104.severity = none
  40. # S1125: Boolean literals should not be redundant
  41. # https://rules.sonarsource.com/csharp/RSPEC-1125
  42. #
  43. # This is a duplicate of MA0073.
  44. dotnet_diagnostic.S1125.severity = none
  45. # S1135: Track uses of "TODO" tags
  46. #
  47. # This is a duplicate of MA0026.
  48. dotnet_diagnostic.S1135.severity = none
  49. # S1168: Empty arrays and collections should be returned instead of null
  50. # https://rules.sonarsource.com/csharp/RSPEC-1168
  51. #
  52. # We sometimes return null to avoid allocating an empty List<T>.
  53. dotnet_diagnostic.S1168.severity = none
  54. # S1172: Unused method parameters should be removed
  55. # https://rules.sonarsource.com/csharp/RSPEC-1172
  56. #
  57. # This is a duplicate of IDE0060.
  58. dotnet_diagnostic.S1172.severity = none
  59. # S1481: Unused local variables should be removed
  60. # https://rules.sonarsource.com/csharp/RSPEC-1481
  61. #
  62. # This is a duplicate of IDE0059.
  63. dotnet_diagnostic.S1481.severity = none
  64. # S2259: Null pointers should not be dereferenced
  65. # https://rules.sonarsource.com/csharp/RSPEC-2259
  66. #
  67. # The analysis is not precise enough, leading to false positives.
  68. dotnet_diagnostic.S2259.severity = none
  69. # S2445: Blocks should be synchronized on read-only fields
  70. # https://rules.sonarsource.com/csharp/RSPEC-2445
  71. #
  72. # This is a (partial) duplicate of MA0064.
  73. dotnet_diagnostic.S2445.severity = none
  74. # S2551: Shared resources should not be used for locking
  75. # https://rules.sonarsource.com/csharp/RSPEC-2551
  76. #
  77. # This is a duplicate of CA2002, and partial duplicate of MA0064.
  78. dotnet_diagnostic.S2551.severity = none
  79. # S2583: Conditionally executed code should be reachable
  80. # https://rules.sonarsource.com/csharp/RSPEC-2583
  81. #
  82. # This rule produces false errors in, for example, for loops.
  83. #dotnet_diagnostic.S2583.severity = none
  84. # S2699: Tests should include assertions
  85. # https://rules.sonarsource.com/csharp/RSPEC-2699
  86. #
  87. # Sometimes you want a test in which you invoke a method and just want to verify that it does not throw.
  88. # For example:
  89. # [TestMethod]
  90. # public void InvokeDisposeWithoutNotifyObjectShouldNotThrow()
  91. # {
  92. # _timer.Dispose();
  93. # }
  94. dotnet_diagnostic.S2699.severity = none
  95. # S2933: Fields that are only assigned in the constructor should be "readonly"
  96. # https://rules.sonarsource.com/csharp/RSPEC-2933
  97. #
  98. # This is a duplicate of IDE0044, but IDE0044 is not reported when targeting .NET Framework 4.8.
  99. dotnet_diagnostic.S2933.severity = none
  100. # S2971: "IEnumerable" LINQs should be simplified
  101. # https://rules.sonarsource.com/csharp/RSPEC-2971
  102. #
  103. # This is a duplicate of MA0020.
  104. dotnet_diagnostic.S2971.severity = none
  105. # S3218: Inner class members should not shadow outer class "static" or type members
  106. # https://rules.sonarsource.com/csharp/RSPEC-3218
  107. #
  108. # This is rather harmless.
  109. dotnet_diagnostic.S3218.severity = none
  110. # S3267: Loops should be simplified with "LINQ" expressions
  111. # https://rules.sonarsource.com/csharp/RSPEC-3267
  112. #
  113. # LINQ is the root of all evil :p
  114. dotnet_diagnostic.S3267.severity = none
  115. # S3376: Attribute, EventArgs, and Exception type names should end with the type being extended
  116. # https://rules.sonarsource.com/csharp/RSPEC-3376
  117. #
  118. # This is a partial duplicate of MA0058. If we enable the Sonar in all repositories, we should
  119. # consider enabling S3376 in favor of MA0058.
  120. dotnet_diagnostic.S3376.severity = none
  121. # S3871: Exception types should be "public"
  122. # https://rules.sonarsource.com/csharp/RSPEC-3871
  123. #
  124. # This is a duplicate of CA1064.
  125. dotnet_diagnostic.S3871.severity = none
  126. # S3925: "ISerializable" should be implemented correctly
  127. # https://rules.sonarsource.com/csharp/RSPEC-3925
  128. #
  129. # This is a duplicate of CA2229.
  130. dotnet_diagnostic.S3925.severity = none
  131. # S3928: Parameter names used into ArgumentException constructors should match an existing one
  132. # https://rules.sonarsource.com/csharp/RSPEC-3928
  133. #
  134. # This is a duplicate of MA0015.
  135. dotnet_diagnostic.S3928.severity = none
  136. # S3998: Threads should not lock on objects with weak identity
  137. # https://rules.sonarsource.com/csharp/RSPEC-3998
  138. #
  139. # This is a duplicate of CA2002, and partial duplicate of MA0064.
  140. dotnet_diagnostic.S3998.severity = none
  141. # S4456: Parameter validation in yielding methods should be wrapped
  142. # https://rules.sonarsource.com/csharp/RSPEC-4456
  143. #
  144. # This is a duplicate of MA0050.
  145. dotnet_diagnostic.S4456.severity = none
  146. # S4487: Unread "private" fields should be removed
  147. # https://rules.sonarsource.com/csharp/RSPEC-4487
  148. #
  149. # This is a duplicate of IDE0052.
  150. dotnet_diagnostic.S4487.severity = none
  151. # S4581: "new Guid()" should not be used
  152. # https://rules.sonarsource.com/csharp/RSPEC-4581
  153. #
  154. # This is a partial duplicate of MA0067, and we do not want to report the use of 'default' for a Guid as error.
  155. dotnet_diagnostic.S4581.severity = none
  156. #### StyleCop rules ####
  157. # SA1003: Symbols must be spaced correctly
  158. #
  159. # When enabled, a diagnostic is produced when there's a space after a cast.
  160. # For example:
  161. # var x = (int) z;
  162. dotnet_diagnostic.SA1003.severity = none
  163. # SA1008: Opening parenthesis should not be preceded by a space
  164. #
  165. # When enabled, a diagnostic is produce when a cast precedes braces.
  166. # For example:
  167. # (long) (a * b)
  168. dotnet_diagnostic.SA1008.severity = none
  169. # SA1009: Closing parenthesis should not be followed by a space
  170. #
  171. # When enabled, a diagnostic is produced when there's a space after a cast.
  172. # For example:
  173. # var x = (int) z;
  174. dotnet_diagnostic.SA1009.severity = none
  175. # SA1101: Prefix local calls with this
  176. dotnet_diagnostic.SA1101.severity = none
  177. # SA1116: Split parameters must start on line after declaration
  178. #
  179. # When enabled, a diagnostic is produced when the first parameter is on the same line as the method or constructor.
  180. # For example:
  181. # arrayBuilder.Add(new StatisticsCallInfo(callsByType.Key,
  182. # callsForType.Count);
  183. dotnet_diagnostic.SA1116.severity = none
  184. # SA1200: Using directives must be placed correctly
  185. #
  186. # This is already verified by the .NET compiler platform analyzers (csharp_using_directive_placement option and IDE0065 rule).
  187. dotnet_diagnostic.SA1200.severity = none
  188. # SA1201: Elements must appear in the correct order
  189. dotnet_diagnostic.SA1201.severity = none
  190. # SA1206: Modifiers are not ordered
  191. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1206.md
  192. #
  193. # This is a duplicate of IDE0036, except that it cannot be configured and expects the required modifier to be before the
  194. # accessibility modifier.
  195. dotnet_diagnostic.SA1206.severity = none
  196. # SA1309: Field names must not begin with underscore
  197. dotnet_diagnostic.SA1309.severity = none
  198. # SA1405: Debug.Assert should provide message text
  199. #
  200. # To be discussed if we want to enable this.
  201. dotnet_diagnostic.SA1405.severity = none
  202. # SA1413: Use trailing comma in multi-line initializers
  203. dotnet_diagnostic.SA1413.severity = none
  204. # SA1503: Braces should not be omitted
  205. #
  206. # This is a duplicate of IDE0011.
  207. dotnet_diagnostic.SA1503.severity = none
  208. # SA1516: Elements must be separated by blank line
  209. #
  210. # When enabled, a diagnostic is produced for properties with both a get and set accessor.
  211. # For example:
  212. # public bool EnableStatistics
  213. # {
  214. # get
  215. # {
  216. # return _enableStatistics;
  217. # }
  218. # set
  219. # {
  220. # _enableStatistics = value;
  221. # }
  222. # }
  223. dotnet_diagnostic.SA1516.severity = none
  224. # SA1520: Use braces consistently
  225. #
  226. # Since we always require braces (configured via csharp_prefer_braces and reported as IDE0011), it does not make sense to check if braces
  227. # are used consistently.
  228. dotnet_diagnostic.SA1520.severity = none
  229. # SA1633: File must have header
  230. #
  231. # We do not use file headers.
  232. dotnet_diagnostic.SA1633.severity = none
  233. # SA1648: <inheritdoc> must be used with inheriting class
  234. #
  235. # This rule is disabled by default, hence we need to explicitly enable it.
  236. dotnet_diagnostic.SA1648.severity = error
  237. # SX1101: Do not prefix local members with 'this.'
  238. #
  239. # This rule is disabled by default, hence we need to explicitly enable it.
  240. dotnet_diagnostic.SX1101.severity = error
  241. # SX1309: Field names must begin with underscore
  242. #
  243. # This rule is disabled by default, hence we need to explicitly enable it.
  244. dotnet_diagnostic.SX1309.severity = error
  245. # SX1309S: Static field names must begin with underscore
  246. #
  247. # This rule is disabled by default, hence we need to explicitly enable it.
  248. dotnet_diagnostic.SX1309S.severity = error
  249. #### Meziantou.Analyzer rules ####
  250. # MA0002: Use an overload that has a IEqualityComparer<string> or IComparer<string> parameter
  251. #
  252. # In .NET (Core) there have been quite some optimizations for EqualityComparer<T>.Default (eg. https://github.com/dotnet/coreclr/pull/14125)
  253. # and Comparer<T>.Default (eg. https://github.com/dotnet/runtime/pull/48160).
  254. #
  255. # We'll have to verify impact on performance before we decide to use specific comparers (eg. StringComparer.InvariantCultureIgnoreCase).
  256. dotnet_diagnostic.MA0002.severity = none
  257. # MA0006: Use string.Equals instead of Equals operator
  258. #
  259. # We almost always want ordinal comparison, and using the explicit overload adds a little overhead
  260. # and is more chatty.
  261. dotnet_diagnostic.MA0006.severity = none
  262. # MA0007: Add a comma after the last value
  263. #
  264. # We do not add a comma after the last value in multi-line initializers.
  265. # For example:
  266. # public enum Sex
  267. # {
  268. # Male = 1,
  269. # Female = 2 // No comma here
  270. # }
  271. #
  272. # Note:
  273. # This is a duplicate of SA1413.
  274. dotnet_diagnostic.MA0007.severity = none
  275. # MA0009: Add regex evaluation timeout
  276. #
  277. # We do not see a need guard our regex's against a DOS attack.
  278. dotnet_diagnostic.MA0009.severity = none
  279. # MA0011: IFormatProvider is missing
  280. #
  281. # Also report diagnostic in ToString(...) methods
  282. MA0011.exclude_tostring_methods = false
  283. # MA0012: Do not raise reserved exception type
  284. #
  285. # This is a duplicate of CA2201.
  286. dotnet_diagnostic.MA0012.severity = none
  287. # MA0014: Do not raise System.ApplicationException type
  288. #
  289. # This is a duplicate of CA2201.
  290. dotnet_diagnostic.MA0014.severity = none
  291. # MA0016: Prefer returning collection abstraction instead of implementation
  292. #
  293. # This is a duplicate of CA1002.
  294. dotnet_diagnostic.MA0016.severity = none
  295. # MA0018: Do not declare static members on generic types
  296. #
  297. # This is a duplicate of CA1000.
  298. dotnet_diagnostic.MA0018.severity = none
  299. # MA0021: Use StringComparer.GetHashCode instead of string.GetHashCode
  300. #
  301. # No strong need for this, and may negatively affect performance.
  302. dotnet_diagnostic.MA0021.severity = none
  303. # MA0031: Optimize Enumerable.Count() usage
  304. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0031.md
  305. #
  306. # The proposed code is less readable.
  307. #
  308. # For example:
  309. #
  310. # the following code fragment:
  311. # enumerable.Count() > 10;
  312. #
  313. # would become:
  314. # enumerable.Skip(10).Any();
  315. dotnet_diagnostic.MA0031.severity = none
  316. # MA0036: Make class static
  317. #
  318. # This is a partial duplicate of CA1052.
  319. dotnet_diagnostic.MA0036.severity = none
  320. # MA0038: Make method static
  321. #
  322. # This is a partial duplicate of, and deprecated in favor of, CA1822.
  323. dotnet_diagnostic.MA0038.severity = none
  324. # MA0041: Make property static
  325. #
  326. # This is a partial duplicate of, and deprecated in favor of, CA1822.
  327. dotnet_diagnostic.MA0041.severity = none
  328. # MA0048: File name must match type name
  329. #
  330. # This is a duplicate of SA1649.
  331. dotnet_diagnostic.MA0048.severity = none
  332. # MA0049: Type name should not match containing namespace
  333. #
  334. # This is a duplicate of CA1724
  335. dotnet_diagnostic.MA0049.severity = none
  336. # MA0051: Method is too long
  337. #
  338. # We do not want to limit the number of lines or statements per method.
  339. dotnet_diagnostic.MA0051.severity = none
  340. # MA0053: Make class sealed
  341. #
  342. # Also report diagnostic for public types.
  343. MA0053.public_class_should_be_sealed = true
  344. # MA0053: Make class sealed
  345. #
  346. # Also report diagnostic for types that derive from System.Exception.
  347. MA0053.exceptions_should_be_sealed = true
  348. # MA0053: Make class sealed
  349. #
  350. # Also report diagnostic for types that define (new) virtual members.
  351. MA0053.class_with_virtual_member_shoud_be_sealed = true
  352. # MA0112: Use 'Count > 0' instead of 'Any()'
  353. #
  354. # This rule is disabled by default, hence we need to explicitly enable it.
  355. dotnet_diagnostic.MA0112.severity = error
  356. #### .NET Compiler Platform code quality rules ####
  357. # CA1002: Do not expose generic lists
  358. #
  359. # For performance reasons - to avoid interface dispatch - we expose generic lists
  360. # instead of a base class or interface.
  361. dotnet_diagnostic.CA1002.severity = none
  362. # CA1008: Enums should have zero value
  363. #
  364. # TODO: To be discussed. Having a zero value offers a performance advantage.
  365. dotnet_diagnostic.CA1008.severity = none
  366. # CA1014: Mark assemblies with CLSCompliantAttribute
  367. #
  368. # This rule is disabled by default, hence we need to explicitly enable it.
  369. #
  370. # Even when enabled, this diagnostic does not appear to be reported for assemblies without CLSCompliantAttribute.
  371. # We reported this issue as https://github.com/dotnet/roslyn-analyzers/issues/6563.
  372. dotnet_diagnostic.CA1014.severity = error
  373. # CA1051: Do not declare visible instance fields
  374. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1051
  375. #
  376. # This is a duplicate of S1104 and SA1401.
  377. dotnet_diagnostic.CA1051.severity = none
  378. # CA1052: Static holder types should be Static or NotInheritable
  379. #
  380. # By default, this diagnostic is only reported for public types.
  381. dotnet_code_quality.CA1052.api_surface = all
  382. # CA1303: Do not pass literals as localized parameters
  383. #
  384. # We don't care about localization.
  385. dotnet_diagnostic.CA1303.severity = none
  386. # CA1305: Specify IFormatProvider
  387. #
  388. # This is a an equivalent of MA0011, except that it does not report a diagnostic for the use of
  389. # DateTime.TryParse(string s, out DateTime result).
  390. #
  391. # Submitted https://github.com/dotnet/roslyn-analyzers/issues/6096 to fix CA1305.
  392. dotnet_diagnostic.CA1305.severity = none
  393. # CA1510: Use ArgumentNullException throw helper
  394. #
  395. # This is only available in .NET 6.0 and higher. We'd need to use conditional compilation to only
  396. # use these throw helper when targeting a framework that supports it.
  397. dotnet_diagnostic.CA1510.severity = none
  398. # CA1725: Parameter names should match base declaration
  399. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1725
  400. #
  401. # This is a duplicate of S927, but contains at least one bug:
  402. # https://github.com/dotnet/roslyn-analyzers/issues/6461
  403. #
  404. # Since we do not enable any of the Sonar rules by default, we'll leave CA1725 enabled.
  405. dotnet_diagnostic.CA1725.severity = error
  406. # CA1819: Properties should not return arrays
  407. #
  408. # Arrays offer better performance than collections.
  409. dotnet_diagnostic.CA1819.severity = none
  410. # CA1828: Mark members as static
  411. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1822
  412. #
  413. # Documentation does not mention which API surface(s) this rule runs on, so we explictly configure it.
  414. dotnet_code_quality.CA1828.api_surface = all
  415. # CA1852: Seal internal types
  416. #
  417. # Similar to MA0053, but does not support public types and types that define (new) virtual members.
  418. dotnet_diagnostic.CA1852.severity = none
  419. # CA1859: Change return type for improved performance
  420. #
  421. # By default, this diagnostic is only reported for private members.
  422. dotnet_code_quality.CA1859.api_surface = all
  423. # CA2208: Instantiate argument exceptions correctly
  424. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2208
  425. #
  426. # This is similar to, but less powerful than, MA0015.
  427. dotnet_diagnostic.CA2208.severity = none
  428. #### Roslyn IDE analyser rules ####
  429. # IDE0032: Use auto-implemented property
  430. #
  431. # For performance reasons, we do not always want to enforce the use of
  432. # auto-implemented properties.
  433. dotnet_diagnostic.IDE0032.severity = suggestion
  434. # IDE0045: Use conditional expression for assignment
  435. #
  436. # This does not always result in cleaner/clearer code.
  437. dotnet_diagnostic.IDE0045.severity = none
  438. # IDE0046: Use conditional expression for return
  439. #
  440. # Using a conditional expression is not always a clear win for readability.
  441. #
  442. # Configured using 'dotnet_style_prefer_conditional_expression_over_return'
  443. dotnet_diagnostic.IDE0046.severity = suggestion
  444. # IDE0055: Fix formatting
  445. #
  446. # When enabled, diagnostics are reported for indented object initializers.
  447. # For example:
  448. # _content = new Person
  449. # {
  450. # Name = "\u13AAlarm"
  451. # };
  452. #
  453. # There are no settings to configure this correctly, unless https://github.com/dotnet/roslyn/issues/63256 (or similar) is ever implemented.
  454. dotnet_diagnostic.IDE0055.severity = none
  455. # IDE0270: Null check can be simplified
  456. #
  457. # var inputPath = originalDossierPathList.Find(x => x.id == updatedPath.id);
  458. # if (inputPath is null)
  459. # {
  460. # throw new PcsException($"Path id ({updatedPath.id}) unknown in PCS for dossier id {dossierFromTs.dossier.id}", updatedPath.id);
  461. # }
  462. #
  463. # We do not want to modify the code using a null coalescing operator:
  464. #
  465. # var inputPath = originalDossierPathList.Find(x => x.id == updatedPath.id) ?? throw new PcsException($"Path id ({updatedPath.id}) unknown in PCS for dossier id {dossierFromTs.dossier.id}", updatedPath.id);
  466. dotnet_diagnostic.IDE0270.severity = none
  467. #### .NET Compiler Platform code style rules ####
  468. ### Language rules ###
  469. ## Modifier preferences
  470. dotnet_style_require_accessibility_modifiers = true
  471. dotnet_style_readonly_field = true
  472. csharp_prefer_static_local_function = true
  473. ## Parentheses preferences
  474. dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
  475. dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
  476. dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
  477. dotnet_style_parentheses_in_other_operators = never_if_unnecessary
  478. # Expression-level preferences
  479. dotnet_style_object_initializer = true
  480. csharp_style_inlined_variable_declaration = true
  481. dotnet_style_collection_initializer = true
  482. dotnet_style_prefer_auto_properties = true
  483. dotnet_style_explicit_tuple_names = true
  484. csharp_prefer_simple_default_expression = true
  485. dotnet_style_prefer_inferred_tuple_names = true
  486. dotnet_style_prefer_inferred_anonymous_type_member_names = true
  487. csharp_style_prefer_local_over_anonymous_function = true
  488. csharp_style_deconstructed_variable_declaration = false
  489. dotnet_style_prefer_conditional_expression_over_assignment = true
  490. dotnet_style_prefer_conditional_expression_over_return = true
  491. dotnet_style_prefer_compound_assignment = true
  492. csharp_style_prefer_index_operator = false
  493. csharp_style_prefer_range_operator = false
  494. dotnet_style_prefer_simplified_interpolation = false
  495. dotnet_style_prefer_simplified_boolean_expressions = true
  496. csharp_style_implicit_object_creation_when_type_is_apparent = false
  497. csharp_style_prefer_tuple_swap = false
  498. # Namespace declaration preferences
  499. csharp_style_namespace_declarations = block_scoped
  500. # Null-checking preferences
  501. csharp_style_throw_expression = false
  502. dotnet_style_coalesce_expression = true
  503. dotnet_style_null_propagation = true
  504. dotnet_style_prefer_is_null_check_over_reference_equality_method = true
  505. csharp_style_prefer_null_check_over_type_check = true
  506. csharp_style_conditional_delegate_call = true
  507. # 'var' preferences
  508. csharp_style_var_for_built_in_types = true
  509. csharp_style_var_when_type_is_apparent = true
  510. csharp_style_var_elsewhere = true
  511. # Expression-bodies members
  512. csharp_style_expression_bodied_methods = false
  513. csharp_style_expression_bodied_constructors = false
  514. csharp_style_expression_bodied_operators = false
  515. csharp_style_expression_bodied_properties = false
  516. csharp_style_expression_bodied_indexers = false
  517. csharp_style_expression_bodied_accessors = false
  518. csharp_style_expression_bodied_lambdas = false
  519. csharp_style_expression_bodied_local_functions = false
  520. # Pattern matching preferences
  521. csharp_style_pattern_matching_over_as_with_null_check = true
  522. csharp_style_pattern_matching_over_is_with_cast_check = true
  523. csharp_style_prefer_switch_expression = false
  524. csharp_style_prefer_pattern_matching = true
  525. csharp_style_prefer_not_pattern = true
  526. csharp_style_prefer_extended_property_pattern = true
  527. # Code block preferences
  528. csharp_prefer_braces = true
  529. csharp_prefer_simple_using_statement = false
  530. # Using directive preferences
  531. csharp_using_directive_placement = outside_namespace
  532. # Namespace naming preferences
  533. dotnet_style_namespace_match_folder = true
  534. # Undocumented preferences
  535. csharp_style_prefer_method_group_conversion = false
  536. csharp_style_prefer_top_level_statements = false
  537. ### Formatting rules ###
  538. ## .NET formatting options ##
  539. # Using directive options
  540. dotnet_sort_system_directives_first = true
  541. dotnet_separate_import_directive_groups = true
  542. ## C# formatting options ##
  543. # New-line options
  544. # TNIS-13005: Enabling this setting breaks Resharper indentation for lambdas
  545. #csharp_new_line_before_open_brace = accessors, anonymous_methods, anonymous_types, control_blocks, events, indexers, lambdas, local_functions, methods, object_collection_array_initializers, properties, types
  546. csharp_new_line_before_else = true
  547. csharp_new_line_before_catch = true
  548. csharp_new_line_before_finally = true
  549. # Enabling this setting breaks Resharper formatting for an enum field reference that is
  550. # deeply nested in an object initializer.
  551. #
  552. # For an example, see TDataExchangeGeneralEnricher_CernInfrastructureObstruction.
  553. #csharp_new_line_before_members_in_object_initializers = true
  554. csharp_new_line_before_members_in_anonymous_types = true
  555. csharp_new_line_between_query_expression_clauses = true
  556. # Indentation options
  557. csharp_indent_case_contents = true
  558. csharp_indent_switch_labels = true
  559. csharp_indent_labels = one_less_than_current
  560. csharp_indent_block_contents = true
  561. # TNIS-13005: Enabling this setting breaks Resharper indentation for lambdas
  562. #csharp_indent_braces = false
  563. # TNIS-13005: Enabling this setting breaks Resharper indentation for lambdas
  564. #csharp_indent_case_contents_when_block = true
  565. # Spacing options
  566. csharp_space_after_cast = true
  567. csharp_space_after_keywords_in_control_flow_statements = true
  568. csharp_space_between_parentheses = false
  569. csharp_space_before_colon_in_inheritance_clause = true
  570. csharp_space_after_colon_in_inheritance_clause = true
  571. csharp_space_around_binary_operators = before_and_after
  572. csharp_space_between_method_declaration_parameter_list_parentheses = false
  573. csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
  574. csharp_space_between_method_declaration_name_and_open_parenthesis = false
  575. csharp_space_between_method_call_parameter_list_parentheses = false
  576. csharp_space_between_method_call_empty_parameter_list_parentheses = false
  577. csharp_space_between_method_call_name_and_opening_parenthesis = false
  578. csharp_space_after_comma = true
  579. csharp_space_before_comma = false
  580. csharp_space_after_dot = false
  581. csharp_space_before_dot = false
  582. csharp_space_after_semicolon_in_for_statement = true
  583. csharp_space_before_semicolon_in_for_statement = false
  584. csharp_space_around_declaration_statements = false
  585. csharp_space_before_open_square_brackets = false
  586. csharp_space_between_empty_square_brackets = false
  587. csharp_space_between_square_brackets = false
  588. # Wrap options
  589. csharp_preserve_single_line_statements = false
  590. csharp_preserve_single_line_blocks = true
  591. ### Naming styles ###
  592. # Naming rules
  593. dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
  594. dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
  595. dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
  596. dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
  597. dotnet_naming_rule.types_should_be_pascal_case.symbols = types
  598. dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
  599. dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
  600. dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
  601. dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
  602. dotnet_naming_rule.private_fields_camel_case_begins_with_underscore.symbols = private_fields
  603. dotnet_naming_rule.private_fields_camel_case_begins_with_underscore.style = camel_case_begins_with_underscore
  604. dotnet_naming_rule.private_fields_camel_case_begins_with_underscore.severity = error
  605. dotnet_naming_rule.private_static_fields_camel_case_begins_with_underscore.symbols = private_static_fields
  606. dotnet_naming_rule.private_static_fields_camel_case_begins_with_underscore.style = camel_case_begins_with_underscore
  607. dotnet_naming_rule.private_static_fields_camel_case_begins_with_underscore.severity = error
  608. dotnet_naming_rule.private_static_readonly_fields_pascal_case.symbols = private_static_readonly_fields
  609. dotnet_naming_rule.private_static_readonly_fields_pascal_case.style = pascal_case
  610. dotnet_naming_rule.private_static_readonly_fields_pascal_case.severity = error
  611. dotnet_naming_rule.private_const_fields_pascal_case.symbols = private_const_fields
  612. dotnet_naming_rule.private_const_fields_pascal_case.style = pascal_case
  613. dotnet_naming_rule.private_const_fields_pascal_case.severity = error
  614. # Symbol specifications
  615. dotnet_naming_symbols.interface.applicable_kinds = interface
  616. dotnet_naming_symbols.interface.applicable_accessibilities = *
  617. dotnet_naming_symbols.interface.required_modifiers =
  618. dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
  619. dotnet_naming_symbols.types.applicable_accessibilities = *
  620. dotnet_naming_symbols.types.required_modifiers =
  621. dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
  622. dotnet_naming_symbols.non_field_members.applicable_accessibilities = *
  623. dotnet_naming_symbols.non_field_members.required_modifiers =
  624. dotnet_naming_symbols.private_fields.applicable_kinds = field
  625. dotnet_naming_symbols.private_fields.applicable_accessibilities = private
  626. dotnet_naming_symbols.private_fields.required_modifiers =
  627. dotnet_naming_symbols.private_static_fields.applicable_kinds = field
  628. dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private
  629. dotnet_naming_symbols.private_static_fields.required_modifiers = static
  630. dotnet_naming_symbols.private_static_readonly_fields.applicable_kinds = field
  631. dotnet_naming_symbols.private_static_readonly_fields.applicable_accessibilities = private
  632. dotnet_naming_symbols.private_static_readonly_fields.required_modifiers = static, readonly
  633. dotnet_naming_symbols.private_const_fields.applicable_kinds = field
  634. dotnet_naming_symbols.private_const_fields.applicable_accessibilities = private
  635. dotnet_naming_symbols.private_const_fields.required_modifiers = const
  636. # Naming styles
  637. dotnet_naming_style.begins_with_i.required_prefix = I
  638. dotnet_naming_style.begins_with_i.required_suffix =
  639. dotnet_naming_style.begins_with_i.word_separator =
  640. dotnet_naming_style.begins_with_i.capitalization = pascal_case
  641. dotnet_naming_style.pascal_case.required_prefix =
  642. dotnet_naming_style.pascal_case.required_suffix =
  643. dotnet_naming_style.pascal_case.word_separator =
  644. dotnet_naming_style.pascal_case.capitalization = pascal_case
  645. dotnet_naming_style.camel_case_begins_with_underscore.required_prefix = _
  646. dotnet_naming_style.camel_case_begins_with_underscore.required_suffix =
  647. dotnet_naming_style.camel_case_begins_with_underscore.word_separator =
  648. dotnet_naming_style.camel_case_begins_with_underscore.capitalization = camel_case
  649. #### .NET Compiler Platform general options ####
  650. # Change the default rule severity for all analyzer rules that are enabled by default
  651. dotnet_analyzer_diagnostic.severity = error
  652. #### .NET Compiler Platform code refactoring rules ####
  653. dotnet_style_operator_placement_when_wrapping = end_of_line
  654. #### ReSharper code style for C# ####
  655. ## Blank Lines
  656. resharper_csharp_blank_lines_around_region = 1
  657. resharper_csharp_blank_lines_inside_region = 1
  658. resharper_csharp_blank_lines_before_single_line_comment = 1
  659. resharper_csharp_keep_blank_lines_in_declarations = 1
  660. resharper_csharp_remove_blank_lines_near_braces_in_declarations = true
  661. resharper_csharp_blank_lines_after_start_comment = 1
  662. resharper_csharp_blank_lines_between_using_groups = 1
  663. resharper_csharp_blank_lines_after_using_list = 1
  664. resharper_csharp_blank_lines_around_namespace = 1
  665. resharper_csharp_blank_lines_inside_namespace = 0
  666. resharper_csharp_blank_lines_after_file_scoped_namespace_directive = 1
  667. resharper_csharp_blank_lines_around_type = 1
  668. resharper_csharp_blank_lines_around_single_line_type = 1
  669. resharper_csharp_blank_lines_inside_type = 0
  670. resharper_csharp_blank_lines_around_field = 0
  671. resharper_csharp_blank_lines_around_single_line_field = 0
  672. resharper_csharp_blank_lines_around_property = 1
  673. resharper_csharp_blank_lines_around_single_line_property = 1
  674. resharper_csharp_blank_lines_around_auto_property = 1
  675. resharper_csharp_blank_lines_around_single_line_auto_property = 1
  676. resharper_csharp_blank_lines_around_accessor = 0
  677. resharper_csharp_blank_lines_around_single_line_accessor = 0
  678. resharper_csharp_blank_lines_around_invocable = 1
  679. resharper_csharp_blank_lines_around_single_line_invocable = 1
  680. resharper_csharp_keep_blank_lines_in_code = 1
  681. resharper_csharp_remove_blank_lines_near_braces_in_code = true
  682. resharper_csharp_blank_lines_around_local_method = 1
  683. resharper_csharp_blank_lines_around_single_line_local_method = 1
  684. resharper_csharp_blank_lines_before_control_transfer_statements = 0
  685. resharper_csharp_blank_lines_after_control_transfer_statements = 0
  686. resharper_csharp_blank_lines_before_block_statements = 0
  687. resharper_csharp_blank_lines_after_block_statements = 1
  688. resharper_csharp_blank_lines_before_multiline_statements = 0
  689. resharper_csharp_blank_lines_after_multiline_statements = 0
  690. resharper_csharp_blank_lines_around_block_case_section = 0
  691. resharper_csharp_blank_lines_around_multiline_case_section = 0
  692. resharper_csharp_blank_lines_before_case = 0
  693. resharper_csharp_blank_lines_after_case = 0
  694. ## Braces Layout
  695. resharper_csharp_type_declaration_braces = next_line
  696. resharper_csharp_indent_inside_namespace = true
  697. resharper_csharp_invocable_declaration_braces = next_line
  698. resharper_csharp_anonymous_method_declaration_braces = next_line_shifted_2
  699. resharper_csharp_accessor_owner_declaration_braces = next_line
  700. resharper_csharp_accessor_declaration_braces = next_line
  701. resharper_csharp_case_block_braces = next_line_shifted_2
  702. resharper_csharp_initializer_braces = next_line_shifted_2
  703. resharper_csharp_use_continuous_indent_inside_initializer_braces = true
  704. resharper_csharp_other_braces = next_line
  705. resharper_csharp_allow_comment_after_lbrace = false
  706. resharper_csharp_empty_block_style = multiline
  707. ## Syntax Style
  708. # 'var' usage in declarations
  709. resharper_csharp_for_built_in_types = use_var
  710. resharper_csharp_for_simple_types = use_var
  711. resharper_csharp_for_other_types = use_var
  712. # Instance members qualification
  713. resharper_csharp_instance_members_qualify_members = none
  714. resharper_csharp_instance_members_qualify_declared_in = base_class
  715. # Static members qualification
  716. resharper_csharp_static_members_qualify_with = declared_type
  717. resharper_csharp_static_members_qualify_members = none
  718. # Built-in types
  719. resharper_csharp_builtin_type_reference_style = use_keyword
  720. resharper_csharp_builtin_type_reference_for_member_access_style = use_keyword
  721. # Reference qualification and 'using' directives
  722. resharper_csharp_prefer_qualified_reference = false
  723. resharper_csharp_add_imports_to_deepest_scope = false
  724. resharper_csharp_qualified_using_at_nested_scope = false
  725. resharper_csharp_allow_alias = true
  726. resharper_csharp_can_use_global_alias = true
  727. # Modifiers
  728. resharper_csharp_default_private_modifier = explicit
  729. resharper_csharp_default_internal_modifier = explicit
  730. resharper_csharp_modifiers_order = public private protected internal file static extern new virtual abstract sealed override readonly unsafe required volatile async
  731. # Braces
  732. resharper_csharp_braces_for_ifelse = required
  733. resharper_csharp_braces_for_for = required
  734. resharper_csharp_braces_for_foreach = required
  735. resharper_csharp_braces_for_while = required
  736. resharper_csharp_braces_for_dowhile = required
  737. resharper_csharp_braces_for_using = required
  738. resharper_csharp_braces_for_lock = required
  739. resharper_csharp_braces_for_fixed = required
  740. resharper_csharp_braces_redundant = false
  741. # Code body
  742. resharper_csharp_method_or_operator_body = block_body
  743. resharper_csharp_local_function_body = block_body
  744. resharper_csharp_constructor_or_destructor_body = block_body
  745. resharper_csharp_accessor_owner_body = accessors_with_block_body
  746. resharper_csharp_namespace_body = block_scoped
  747. resharper_csharp_use_heuristics_for_body_style = false
  748. # Trailing comma
  749. resharper_csharp_trailing_comma_in_multiline_lists = false
  750. resharper_csharp_trailing_comma_in_singleline_lists = false
  751. # Object creation
  752. resharper_csharp_object_creation_when_type_evident = explicitly_typed
  753. resharper_csharp_object_creation_when_type_not_evident = explicitly_typed
  754. # Default value
  755. resharper_csharp_default_value_when_type_evident = default_literal
  756. resharper_csharp_default_value_when_type_not_evident = default_literal
  757. ## Tabs, Indents, Alignment
  758. # Nested statements
  759. resharper_csharp_indent_nested_usings_stmt = false
  760. resharper_csharp_indent_nested_fixed_stmt = false
  761. resharper_csharp_indent_nested_lock_stmt = false
  762. resharper_csharp_indent_nested_for_stmt = true
  763. resharper_csharp_indent_nested_foreach_stmt = true
  764. resharper_csharp_indent_nested_while_stmt = true
  765. # Parenthesis
  766. resharper_csharp_use_continuous_indent_inside_parens = true
  767. resharper_csharp_indent_method_decl_pars = outside_and_inside
  768. resharper_csharp_indent_invocation_pars = outside_and_inside
  769. resharper_csharp_indent_statement_pars = outside_and_inside
  770. resharper_csharp_indent_typeparam_angles = outside_and_inside
  771. resharper_csharp_indent_typearg_angles = outside_and_inside
  772. resharper_csharp_indent_pars = outside_and_inside
  773. # Preprocessor directives
  774. resharper_csharp_indent_preprocessor_if = no_indent
  775. resharper_csharp_indent_preprocessor_region = usual_indent
  776. resharper_csharp_indent_preprocessor_other = no_indent
  777. # Other indents
  778. resharper_indent_switch_labels = true
  779. resharper_csharp_outdent_statement_labels = true
  780. resharper_csharp_indent_type_constraints = true
  781. resharper_csharp_stick_comment = false
  782. resharper_csharp_place_comments_at_first_column = false
  783. resharper_csharp_use_indent_from_previous_element = true
  784. resharper_csharp_indent_braces_inside_statement_conditions = true
  785. # Align multiline constructs
  786. resharper_csharp_alignment_tab_fill_style = use_spaces
  787. resharper_csharp_allow_far_alignment = true
  788. resharper_csharp_align_multiline_parameter = true
  789. resharper_csharp_align_multiline_extends_list = true
  790. resharper_csharp_align_linq_query = true
  791. resharper_csharp_align_multiline_binary_expressions_chain = true
  792. resharper_csharp_outdent_binary_ops = false
  793. resharper_csharp_align_multiline_calls_chain = true
  794. resharper_csharp_outdent_dots = false
  795. resharper_csharp_align_multiline_array_and_object_initializer = false
  796. resharper_csharp_align_multiline_switch_expression = false
  797. resharper_csharp_align_multiline_property_pattern = false
  798. resharper_csharp_align_multiline_list_pattern = false
  799. resharper_csharp_align_multiline_binary_patterns = false
  800. resharper_csharp_outdent_binary_pattern_ops = false
  801. resharper_csharp_indent_anonymous_method_block = true
  802. resharper_csharp_align_first_arg_by_paren = false
  803. resharper_csharp_align_multiline_argument = true
  804. resharper_csharp_align_tuple_components = true
  805. resharper_csharp_align_multiline_expression = true
  806. resharper_csharp_align_multiline_statement_conditions = true
  807. resharper_csharp_align_multiline_for_stmt = true
  808. resharper_csharp_align_multiple_declaration = true
  809. resharper_csharp_align_multline_type_parameter_list = true
  810. resharper_csharp_align_multline_type_parameter_constrains = true
  811. resharper_csharp_outdent_commas = false
  812. ## Line Breaks
  813. # General
  814. resharper_csharp_keep_user_linebreaks = true
  815. resharper_csharp_max_line_length = 140
  816. resharper_csharp_wrap_before_comma = false
  817. resharper_csharp_wrap_before_eq = false
  818. resharper_csharp_special_else_if_treatment = true
  819. resharper_csharp_insert_final_newline = true
  820. # Arrangement of attributes
  821. resharper_csharp_keep_existing_attribute_arrangement = false
  822. resharper_csharp_place_type_attribute_on_same_line = false
  823. resharper_csharp_place_method_attribute_on_same_line = false
  824. resharper_csharp_place_accessorholder_attribute_on_same_line = false
  825. resharper_csharp_place_accessor_attribute_on_same_line = false
  826. resharper_csharp_place_field_attribute_on_same_line = false
  827. resharper_csharp_place_record_field_attribute_on_same_line = true
  828. # Arrangement of method signatures
  829. resharper_csharp_place_constructor_initializer_on_same_line = false
  830. resharper_csharp_place_expr_method_on_single_line = true
  831. resharper_csharp_place_expr_property_on_single_line = true
  832. resharper_csharp_place_expr_accessor_on_single_line = true
  833. # Arrangement of type parameters, constraints, and base types
  834. resharper_csharp_place_type_constraints_on_same_line = false
  835. resharper_csharp_wrap_before_first_type_parameter_constraint = true
  836. # Arrangement of declaration blocks
  837. resharper_csharp_place_abstract_accessorholder_on_single_line = true
  838. # Arrangement of statements
  839. resharper_new_line_before_else = true
  840. resharper_new_line_before_while = true
  841. resharper_new_line_before_catch = true
  842. resharper_new_line_before_finally = true
  843. resharper_wrap_for_stmt_header_style = chop_if_long
  844. resharper_wrap_multiple_declaration_style = chop_always
  845. ## Spaces
  846. # Preserve existing formatting
  847. resharper_csharp_extra_spaces = remove_all
  848. # Before parentheses in statements
  849. resharper_csharp_space_before_if_parentheses = true
  850. resharper_csharp_space_before_while_parentheses = true
  851. resharper_csharp_space_before_catch_parentheses = true
  852. resharper_csharp_space_before_switch_parentheses = true
  853. resharper_csharp_space_before_for_parentheses = true
  854. resharper_csharp_space_before_foreach_parentheses = true
  855. resharper_csharp_space_before_using_parentheses = true
  856. resharper_csharp_space_before_lock_parentheses = true
  857. resharper_csharp_space_before_fixed_parentheses = true
  858. # Before other parentheses
  859. resharper_csharp_space_before_method_call_parentheses = false
  860. resharper_csharp_space_before_empty_method_call_parentheses = false
  861. resharper_csharp_space_before_method_parentheses = false
  862. resharper_csharp_space_before_empty_method_parentheses = false
  863. resharper_csharp_space_before_typeof_parentheses = false
  864. resharper_csharp_space_before_default_parentheses = false
  865. resharper_csharp_space_before_checked_parentheses = false
  866. resharper_csharp_space_before_sizeof_parentheses = false
  867. resharper_csharp_space_before_nameof_parentheses = false
  868. resharper_csharp_space_before_new_parentheses = false
  869. resharper_csharp_space_between_keyword_and_expression = true
  870. resharper_csharp_space_between_keyword_and_type = false
  871. # Within parentheses in statements
  872. resharper_csharp_space_within_if_parentheses = false
  873. resharper_csharp_space_within_while_parentheses = false
  874. resharper_csharp_space_within_catch_parentheses = false
  875. resharper_csharp_space_within_switch_parentheses = false
  876. resharper_csharp_space_within_for_parentheses = false
  877. resharper_csharp_space_within_foreach_parentheses = false
  878. resharper_csharp_space_within_using_parentheses = false
  879. resharper_csharp_space_within_lock_parentheses = false
  880. resharper_csharp_space_within_fixed_parentheses = false
  881. # Within other parentheses
  882. resharper_csharp_space_within_parentheses = false
  883. resharper_csharp_space_between_typecast_parentheses = false
  884. resharper_csharp_space_between_method_declaration_parameter_list_parentheses = false
  885. resharper_csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
  886. resharper_csharp_space_between_method_call_parameter_list_parentheses = false
  887. resharper_csharp_space_between_method_call_empty_parameter_list_parentheses = false
  888. resharper_csharp_space_within_typeof_parentheses = false
  889. resharper_csharp_space_within_default_parentheses = false
  890. resharper_csharp_space_within_checked_parentheses = false
  891. resharper_csharp_space_within_sizeof_parentheses = false
  892. resharper_csharp_space_within_nameof_parentheses = false
  893. resharper_csharp_space_within_new_parentheses = false
  894. # Around array brackets
  895. resharper_csharp_space_before_array_access_brackets = false
  896. resharper_csharp_space_before_open_square_brackets = false
  897. resharper_csharp_space_before_array_rank_brackets = false
  898. resharper_csharp_space_within_array_access_brackets = false
  899. resharper_csharp_space_between_square_brackets = false
  900. resharper_csharp_space_within_array_rank_brackets = false
  901. resharper_csharp_space_within_array_rank_empty_brackets = false
  902. resharper_csharp_space_between_empty_square_bracket = false
  903. # Around angle brackets
  904. resharper_csharp_space_before_type_parameter_angle = false
  905. resharper_csharp_space_before_type_argument_angle = false
  906. resharper_csharp_space_within_type_parameter_angles = false
  907. resharper_csharp_space_within_type_argument_angles = false
  908. ### ReSharper code style for XMLDOC ###
  909. ## Tabs and indents
  910. resharper_xmldoc_indent_style = space
  911. # ReSharper currently ignores this setting. See https://youtrack.jetbrains.com/issue/RSRP-465678/XMLDOC-indent-settings-ignored.
  912. resharper_xmldoc_indent_size = 2
  913. resharper_xmldoc_tab_width = 2
  914. resharper_xmldoc_alignment_tab_fill_style = use_spaces
  915. resharper_xmldoc_allow_far_alignment = true
  916. ## Line wrapping
  917. resharper_xmldoc_max_line_length = 140
  918. resharper_xmldoc_wrap_tags_and_pi = false
  919. ## Processing instructions
  920. resharper_xmldoc_spaces_around_eq_in_pi_attribute = false
  921. resharper_xmldoc_space_after_last_pi_attribute = false
  922. resharper_xmldoc_pi_attribute_style = on_single_line
  923. resharper_xmldoc_pi_attributes_indent = align_by_first_attribute
  924. resharper_xmldoc_blank_line_after_pi = false
  925. ## Inside of tag header
  926. resharper_xmldoc_spaces_around_eq_in_attribute = false
  927. resharper_xmldoc_space_after_last_attribute = false
  928. resharper_xmldoc_space_before_self_closing = false
  929. resharper_xmldoc_attribute_style = do_not_touch
  930. resharper_xmldoc_attribute_indent = align_by_first_attribute
  931. ## Tag content
  932. resharper_xmldoc_keep_user_linebreaks = true
  933. resharper_xmldoc_linebreaks_inside_tags_for_multiline_elements = true
  934. resharper_xmldoc_linebreaks_inside_tags_for_elements_with_child_elements = false
  935. resharper_xmldoc_spaces_inside_tags = false
  936. resharper_xmldoc_wrap_text = false
  937. resharper_xmldoc_wrap_around_elements = false
  938. # ReSharper currently ignores the 'resharper_xmldoc_indent_size' setting. Once https://youtrack.jetbrains.com/issue/RSRP-465678/XMLDOC-indent-settings-ignored
  939. # is fixed, we should change the value of this setting to 'one_indent'.
  940. resharper_xmldoc_indent_child_elements = zero_indent
  941. resharper_xmldoc_indent_text = zero_indent
  942. ## Around tags
  943. resharper_xmldoc_max_blank_lines_between_tags = 1
  944. resharper_xmldoc_linebreak_before_multiline_elements = true
  945. resharper_xmldoc_linebreak_before_singleline_elements = false
  946. [*.{xml,xsd,csproj,targets,proj,props,runsettings,config}]
  947. #### ReSharper code style for XML ####
  948. ## Tabs and indents
  949. resharper_xml_indent_style = space
  950. resharper_xml_indent_size = 4
  951. resharper_xml_tab_width = 4
  952. resharper_xml_alignment_tab_fill_style = use_spaces
  953. resharper_xml_allow_far_alignment = true
  954. ## Line wrapping
  955. resharper_xml_wrap_tags_and_pi = false
  956. ## Processing instructions
  957. resharper_xml_spaces_around_eq_in_pi_attribute = false
  958. resharper_xml_space_after_last_pi_attribute = false
  959. resharper_xml_pi_attribute_style = on_single_line
  960. resharper_xml_pi_attributes_indent = align_by_first_attribute
  961. resharper_xml_blank_line_after_pi = false
  962. ## Inside of tag header
  963. resharper_xml_spaces_around_eq_in_attribute = false
  964. resharper_xml_space_after_last_attribute = false
  965. resharper_xml_space_before_self_closing = true
  966. resharper_xml_attribute_style = do_not_touch
  967. resharper_xml_attribute_indent = align_by_first_attribute
  968. ## Tag content
  969. resharper_xml_keep_user_linebreaks = true
  970. resharper_xml_linebreaks_inside_tags_for_multiline_elements = false
  971. resharper_xml_linebreaks_inside_tags_for_elements_with_child_elements = false
  972. resharper_xml_linebreaks_inside_tags_for_elements_longer_than = false
  973. resharper_xml_spaces_inside_tags = false
  974. resharper_xml_wrap_text = false
  975. resharper_xml_wrap_around_elements = false
  976. resharper_xml_indent_child_elements = one_indent
  977. resharper_xml_indent_text = zero_indent
  978. resharper_xml_max_blank_lines_between_tags = 1
  979. resharper_xml_linebreak_before_multiline_elements = false
  980. resharper_xml_linebreak_before_singleline_elements = false
  981. ## Other
  982. resharper_xml_insert_final_newline = true