Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit 83d6974

Browse files
committed
Resharper: reformat solution
1 parent fdd9d28 commit 83d6974

138 files changed

Lines changed: 987 additions & 1024 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer.Test/RoslynTestFramework/FixableDocument.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ private sealed class MarkupParser
5757
'*'
5858
];
5959

60-
private static readonly string[] ReplaceSeparatorArray =
61-
[
62-
ReplaceSeparator
63-
];
60+
private static readonly string[] ReplaceSeparatorArray = [ReplaceSeparator];
6461

6562
private readonly string markupCode;
6663

src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer.Test/Specs/ClassDesign/AvoidStaticClassSpecs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static class SomeExtensions
132132
public static void M(this string s)
133133
{
134134
}
135-
135+
136136
private static void InnerMethod(string s)
137137
{
138138
}
@@ -155,7 +155,7 @@ static class SomeExtensions
155155
internal static void M(this string s)
156156
{
157157
}
158-
158+
159159
private static void InnerMethod(string s)
160160
{
161161
}

src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer.Test/Specs/Documentation/AvoidInlineCommentSpecs.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ public string P
154154
get
155155
{
156156
[|// comment |]
157-
157+
158158
return null;
159-
159+
160160
[|/* unreachable */|]
161161
}
162162
}
@@ -212,7 +212,7 @@ internal async Task When_method_body_contains_Resharper_inspections_it_must_be_s
212212
void M()
213213
{
214214
string s = null;
215-
215+
216216
// ReSharper disable PossibleNullReferenceException
217217
if (s.Length > 1)
218218
// ReSharper restore PossibleNullReferenceException
@@ -255,7 +255,7 @@ void M()
255255
// @formatter:max_line_length 50
256256
string text = string.Empty;
257257
// @formatter:max_line_length restore
258-
258+
259259
// @formatter:off
260260
int i = 1;
261261
// @formatter:on
@@ -278,10 +278,10 @@ void UnitTest()
278278
{
279279
// Arrange
280280
int x = 10;
281-
281+
282282
// Act
283283
x -= 1;
284-
284+
285285
// Assert
286286
Debug.Assert(x == 9);
287287
}
@@ -303,7 +303,7 @@ void UnitTest()
303303
{
304304
// Arrange
305305
int x = 10;
306-
306+
307307
// Act and assert
308308
Debug.Assert(--x == 9);
309309
}

src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer.Test/Specs/Documentation/DocumentInternalMemberSpecs.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public class C
4747
protected abstract class X
4848
{
4949
}
50-
50+
5151
protected internal class Y
5252
{
5353
}
54-
54+
5555
private sealed class Z
5656
{
5757
}
@@ -375,17 +375,17 @@ public class C
375375
protected string F2;
376376
protected internal string F3;
377377
private string F4;
378-
378+
379379
public string P1 { get; set; }
380380
protected string P2 { get; set; }
381381
protected internal string P3 { get; set; }
382382
private string P4 { get; set; }
383-
383+
384384
public event EventHandler E1;
385385
protected event EventHandler E2;
386386
protected internal event EventHandler E3;
387387
private event EventHandler E4;
388-
388+
389389
public int M1(string p1) => throw new NotImplementedException();
390390
protected int M2(string p2) => throw new NotImplementedException();
391391
protected internal int M3(string p3) => throw new NotImplementedException();

src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer.Test/Specs/Framework/AvoidQuerySyntaxForSimpleExpressionSpecs.cs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void M()
2323
var query =
2424
[|from item in Enumerable.Empty<string>()
2525
select item|];
26-
26+
2727
// Method chain equivalent (no invocations):
2828
// var query = Enumerable.Empty<string>();
2929
}
@@ -48,7 +48,7 @@ void M()
4848
var query =
4949
[|from item in new List<string>()
5050
select item|];
51-
51+
5252
// Method chain equivalent (single invocation):
5353
// var query = new List<string>().Select(item => item);
5454
}
@@ -73,7 +73,7 @@ void M()
7373
[|from item in Enumerable.Empty<string>()
7474
where item.Length > 2
7575
select item|];
76-
76+
7777
// Method chain equivalent (single invocation):
7878
// var query = Enumerable.Empty<string>().Where(item => item.Length > 2);
7979
}
@@ -99,7 +99,7 @@ from item in Enumerable.Empty<string>()
9999
where item != null
100100
where item.Length > 2
101101
select item;
102-
102+
103103
// Method chain equivalent (multiple invocations):
104104
// var query = Enumerable.Empty<string>()
105105
// .Where(item => item != null)
@@ -127,7 +127,7 @@ where item.Length > 2
127127
select item
128128
)
129129
.ToArray()|]);
130-
130+
131131
// Method chain equivalent (multiple invocations, yet still simpler):
132132
// var result = Process(Enumerable.Empty<string>()
133133
// .Where(item => item.Length > 2)
@@ -156,7 +156,7 @@ void M()
156156
from item in Enumerable.Empty<string>()
157157
select item
158158
).ToList()|];
159-
159+
160160
// Method chain equivalent (single invocation):
161161
// var query = Enumerable.Empty<string>().ToList();
162162
}
@@ -185,7 +185,7 @@ where other.Length > 2
185185
where item.Length > 2
186186
orderby item.Length
187187
select item;
188-
188+
189189
// Method chain equivalent (single invocation):
190190
// var query =
191191
// from item in
@@ -214,7 +214,7 @@ void M()
214214
var query =
215215
[|from string item in Enumerable.Empty<object>()
216216
select item|];
217-
217+
218218
// Method chain equivalent (single invocation):
219219
// var query = Enumerable.Empty<object>().Cast<string>();
220220
}
@@ -239,7 +239,7 @@ void M()
239239
from string item in Enumerable.Empty<object>()
240240
where item.Length > 2
241241
select item;
242-
242+
243243
// Method chain equivalent (multiple invocations):
244244
// var query = Enumerable.Empty<object>()
245245
// .Cast<string>()
@@ -264,7 +264,7 @@ void M()
264264
var query =
265265
[|from item in Enumerable.Empty<string>()
266266
group item by item.Length|];
267-
267+
268268
// Method chain equivalent (single invocation):
269269
// var query = Enumerable.Empty<string>().GroupBy(item => item.Length);
270270
}
@@ -289,7 +289,7 @@ void M()
289289
from item in Enumerable.Empty<string>()
290290
where item != null
291291
group item by item.Length;
292-
292+
293293
// Method chain equivalent (multiple invocations):
294294
// var query = Enumerable.Empty<string>()
295295
// .Where(item => item != null)
@@ -316,7 +316,7 @@ void M()
316316
group item by item.Length
317317
into grp
318318
select grp|];
319-
319+
320320
// Method chain equivalent (single invocation):
321321
// var query = Enumerable.Empty<string>().GroupBy(item => item.Length);
322322
}
@@ -343,7 +343,7 @@ group item by item.Length
343343
into grp
344344
where grp.Key > 0
345345
select grp;
346-
346+
347347
// Method chain equivalent (multiple invocations):
348348
// var query = Enumerable.Empty<string>()
349349
// .GroupBy(item => item.Length)
@@ -369,7 +369,7 @@ void M()
369369
from item in Enumerable.Empty<string>()
370370
join other in Enumerable.Empty<string>() on item.Length equals other.Length
371371
select item;
372-
372+
373373
// Method chain equivalent (single invocation, yet more complex):
374374
// var query = Enumerable.Empty<string>()
375375
// .Join(Enumerable.Empty<string>(),
@@ -398,7 +398,7 @@ from item in Enumerable.Empty<string>()
398398
join other in Enumerable.Empty<string>() on item.Length equals other.Length
399399
into product
400400
select product;
401-
401+
402402
// Method chain equivalent (single invocation, yet more complex):
403403
// var query = Enumerable.Empty<string>()
404404
// .GroupJoin(Enumerable.Empty<string>(),
@@ -426,7 +426,7 @@ void M()
426426
[|from item in Enumerable.Empty<string>()
427427
orderby item descending
428428
select item|];
429-
429+
430430
// Method chain equivalent (single invocation):
431431
// var query = Enumerable.Empty<string>().OrderByDescending(item => item);
432432
}
@@ -452,7 +452,7 @@ from item in Enumerable.Empty<string>()
452452
where item.Length > 2
453453
orderby item descending
454454
select item;
455-
455+
456456
// Method chain equivalent (multiple invocations):
457457
// var query = Enumerable.Empty<string>()
458458
// .Where(item => item.Length > 2)
@@ -478,7 +478,7 @@ void M()
478478
from item in Enumerable.Empty<string>()
479479
orderby item.Length, item
480480
select item;
481-
481+
482482
// Method chain equivalent (multiple invocations):
483483
// var query = Enumerable.Empty<string>()
484484
// .OrderBy(item => item.Length)
@@ -504,7 +504,7 @@ void M()
504504
from left in Enumerable.Empty<string>()
505505
from right in Enumerable.Empty<string>()
506506
select new { left, right };
507-
507+
508508
// Method chain equivalent (single invocation, yet more complex):
509509
// var query = Enumerable.Empty<string>().SelectMany(left => Enumerable.Empty<string>(), (left, right) => new { left, right });
510510
}
@@ -528,7 +528,7 @@ from left in Enumerable.Empty<string>()
528528
from right in Enumerable.Empty<string>()
529529
where left.Length > right.Length
530530
select new { left, right };
531-
531+
532532
// Method chain equivalent (multiple invocations):
533533
// var query = Enumerable.Empty<string>()
534534
// .SelectMany(left => Enumerable.Empty<string>(), (left, right) => new { left, right })
@@ -553,7 +553,7 @@ void M()
553553
var query =
554554
[|from item in Enumerable.Empty<string>()
555555
select new { item, item.Length }|];
556-
556+
557557
// Method chain equivalent (single invocation):
558558
// var query = Enumerable.Empty<string>().Select(item => new { item, item.Length });
559559
}
@@ -578,7 +578,7 @@ void M()
578578
from item in Enumerable.Empty<string>()
579579
where item != null
580580
select new { item, item.Length };
581-
581+
582582
// Method chain equivalent (multiple invocations):
583583
// var query = Enumerable.Empty<string>()
584584
// .Where(item => item != null)
@@ -604,7 +604,7 @@ void M()
604604
from item in Enumerable.Empty<string>()
605605
let isLong = item.Length > 2
606606
select item;
607-
607+
608608
// Method chain equivalent (multiple invocations):
609609
// var query = Enumerable.Empty<string>()
610610
// .Select(item => new { item, isLong = item.Length > 2 })

0 commit comments

Comments
 (0)