Skip to content

Commit 4837b91

Browse files
tigCopilot
andcommitted
Apply ReSharper full cleanup - idempotent on both platforms
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 816b935 commit 4837b91

16 files changed

Lines changed: 50 additions & 49 deletions

File tree

‎CommunityToolkitExample/LoginView.cs‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,23 @@ public void Receive (Message<LoginActions> message)
4646
switch (message.Value)
4747
{
4848
case LoginActions.Clear:
49-
{
50-
loginProgressLabel.Text = ViewModel.LoginProgressMessage;
51-
validationLabel.Text = ViewModel.ValidationMessage;
52-
validationLabel.SetScheme (ViewModel.ValidationScheme);
53-
break;
54-
}
49+
{
50+
loginProgressLabel.Text = ViewModel.LoginProgressMessage;
51+
validationLabel.Text = ViewModel.ValidationMessage;
52+
validationLabel.SetScheme (ViewModel.ValidationScheme);
53+
break;
54+
}
5555
case LoginActions.LoginProgress:
56-
{
57-
loginProgressLabel.Text = ViewModel.LoginProgressMessage;
58-
break;
59-
}
56+
{
57+
loginProgressLabel.Text = ViewModel.LoginProgressMessage;
58+
break;
59+
}
6060
case LoginActions.Validation:
61-
{
62-
validationLabel.Text = ViewModel.ValidationMessage;
63-
validationLabel.SetScheme (ViewModel.ValidationScheme);
64-
break;
65-
}
61+
{
62+
validationLabel.Text = ViewModel.ValidationMessage;
63+
validationLabel.SetScheme (ViewModel.ValidationScheme);
64+
break;
65+
}
6666
}
6767

6868
SetText ();

‎CommunityToolkitExample/Program.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static class Program
1010

1111
private static async Task Main (string[] args)
1212
{
13-
var smokeTest = args.Length > 0 && args[0] == "--smoke-test";
13+
var smokeTest = args.Length > 0 && args [0] == "--smoke-test";
1414

1515
ConfigurationManager.Enable (ConfigLocations.All);
1616
Services = ConfigureServices ();

‎Example/Example.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
IApplication app = Application.Create ().Init ();
1717

18-
var smokeTest = args.Length > 0 && args[0] == "--smoke-test";
18+
var smokeTest = args.Length > 0 && args [0] == "--smoke-test";
1919

2020
if (smokeTest)
2121
{
@@ -61,7 +61,7 @@ public ExampleWindow ()
6161
};
6262

6363
Label passwordLabel = new ()
64-
{ Text = "Password:", X = Pos.Left (usernameLabel), Y = Pos.Bottom (usernameLabel) + 1 };
64+
{ Text = "Password:", X = Pos.Left (usernameLabel), Y = Pos.Bottom (usernameLabel) + 1 };
6565

6666
TextField passwordText = new ()
6767
{

‎Examples.sln.DotSettings‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/ForBuiltInTypes/@EntryValue">UseExplicitType</s:String>
1717
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/ForSimpleTypes/@EntryValue">UseExplicitType</s:String>
1818
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/Elsewhere/@EntryValue">UseExplicitType</s:String>
19+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean>
20+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
21+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
22+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
1923
</wpf:ResourceDictionary>

‎FluentExample/Program.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Terminal.Gui.ViewBase;
77
using Terminal.Gui.Views;
88

9-
var smokeTest = args.Length > 0 && args[0] == "--smoke-test";
9+
var smokeTest = args.Length > 0 && args [0] == "--smoke-test";
1010

1111
IApplication app = Application.Create ().Init ();
1212

‎InlineCLI/InlineCLI.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
IApplication app = Application.Create ().Init ();
2626

27-
var smokeTest = args.Length > 0 && args[0] == "--smoke-test";
27+
var smokeTest = args.Length > 0 && args [0] == "--smoke-test";
2828

2929
if (smokeTest)
3030
{
@@ -66,7 +66,7 @@ public InlinePromptView ()
6666

6767
StatusBar statusBar = new () { AlignmentModes = AlignmentModes.IgnoreFirstOrLast, SchemeName = SchemeName };
6868
Shortcut itemCountShortcut = new ()
69-
{ Title = "No items", MouseHighlightStates = MouseState.None, Enabled = false };
69+
{ Title = "No items", MouseHighlightStates = MouseState.None, Enabled = false };
7070

7171
_cursorShortcut = new Shortcut { Text = "Cursor", MouseHighlightStates = MouseState.None, Enabled = false };
7272
_driverShortcut = new Shortcut { Text = "Driver", MouseHighlightStates = MouseState.None, Enabled = false };

‎InlineCLI/Logo.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected override bool OnDrawingContent (DrawContext? context)
4444
Gradient gradient = new (stops, steps);
4545

4646
var artHeight = 3;
47-
var artWidth = _artLines[0].Length;
47+
var artWidth = _artLines [0].Length;
4848

4949
Dictionary<Point, Color> colorMap =
5050
gradient.BuildCoordinateColorMapping (artHeight, artWidth, GradientDirection.Diagonal);
@@ -53,11 +53,11 @@ protected override bool OnDrawingContent (DrawContext? context)
5353

5454
for (var row = 0; row < _artLines.Length; row++)
5555
{
56-
var line = _artLines[row];
56+
var line = _artLines [row];
5757

5858
for (var col = 0; col < line.Length; col++)
5959
{
60-
var ch = line[col];
60+
var ch = line [col];
6161

6262
if (ch == ' ')
6363
{

‎InlineColorPicker/Program.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using Terminal.Gui.Views;
2121

2222
// Check for smoke test mode
23-
var smokeTest = args.Length > 0 && args[0] == "--smoke-test";
23+
var smokeTest = args.Length > 0 && args [0] == "--smoke-test";
2424

2525
if (smokeTest)
2626
{
@@ -41,11 +41,11 @@
4141

4242
for (var i = 0; i < args.Length; i++)
4343
{
44-
if (args[i] is "--initial" or "-i")
44+
if (args [i] is "--initial" or "-i")
4545
{
4646
if (i + 1 < args.Length)
4747
{
48-
initialValue = args[++i];
48+
initialValue = args [++i];
4949
}
5050
else
5151
{
@@ -64,7 +64,7 @@
6464
// Wrap ColorPicker in a RunnableWrapper — no dialog buttons, just the picker.
6565
// ColorPicker raises Command.Accept on double-click.
6666
RunnableWrapper<ColorPicker, Color?> wrapper = new ()
67-
{ Title = "Select a Color (Double-click to accept, Esc to cancel)", ResultExtractor = cp => cp.Value };
67+
{ Title = "Select a Color (Double-click to accept, Esc to cancel)", ResultExtractor = cp => cp.Value };
6868

6969
// Enable color name display
7070
wrapper.GetWrappedView ().Style.ShowColorName = true;

‎InlineSelect/Program.cs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
using Timeout = System.Threading.Timeout;
2525

2626
// Check for smoke test mode
27-
var smokeTest = args.Length > 0 && args[0] == "--smoke-test";
27+
var smokeTest = args.Length > 0 && args [0] == "--smoke-test";
2828

2929
if (smokeTest)
3030
{
@@ -49,15 +49,15 @@
4949

5050
for (var i = 0; i < args.Length; i++)
5151
{
52-
var arg = args[i];
52+
var arg = args [i];
5353

5454
switch (arg)
5555
{
5656
case "--horizontal" or "-h": orientation = Orientation.Horizontal; break;
5757

5858
case "--vertical" or "-v": orientation = Orientation.Vertical; break;
5959

60-
case "--timeout" or "-t" when i + 1 < args.Length && int.TryParse (args[i + 1], out var seconds):
60+
case "--timeout" or "-t" when i + 1 < args.Length && int.TryParse (args [i + 1], out var seconds):
6161
timeoutSeconds = seconds;
6262
i++; // skip the next arg (the number)
6363

@@ -68,7 +68,7 @@
6868

6969
return 1;
7070

71-
case "--initial" or "-i" when i + 1 < args.Length: initialValue = args[++i]; break;
71+
case "--initial" or "-i" when i + 1 < args.Length: initialValue = args [++i]; break;
7272

7373
case "--initial" or "-i":
7474
Console.Error.WriteLine ("Error: --initial requires an index value.");
@@ -162,7 +162,7 @@
162162

163163
if (result is { } selectedIndex and >= 0 && selectedIndex < options.Count)
164164
{
165-
Console.WriteLine (options[selectedIndex]);
165+
Console.WriteLine (options [selectedIndex]);
166166

167167
return 0;
168168
}

‎PromptExample/Program.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// ReSharper disable AccessToDisposedClosure
1717

18-
var smokeTest = args.Length > 0 && args[0] == "--smoke-test";
18+
var smokeTest = args.Length > 0 && args [0] == "--smoke-test";
1919

2020
if (smokeTest)
2121
{

0 commit comments

Comments
 (0)