Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jerviscui committed Jun 6, 2024
1 parent 17be304 commit 772cd95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/.vserunonsave
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ ext_command_after =
output_string = $(FileName) saved!

[*.cs]
vs_command_before1 = EditorContextMenus.CodeWindow.Removeemptylines, EditorContextMenus.FileHealthIndicator.RunDefaultCodeCleanup, CodeRush.OrganizeMembers, CodeRush.CleanUpDocument, Edit.FormatDocument
vs_command_before = EditorContextMenus.FileHealthIndicator.RunDefaultCodeCleanup, CodeRush.OrganizeMembers, CodeRush.CleanUpDocument, Edit.FormatDocument
10 changes: 6 additions & 4 deletions src/Tests/CodeAnalysisTest/OrganizeMembersTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ static OrganizeMembersTest()

PublicStaticProp = hello;
PrivateStaticProp = hello;

Field3 = 1;
}

private OrganizeMembersTest()
Expand All @@ -112,7 +114,7 @@ public OrganizeMembersTest(int myField) : this()
{
_myField = myField;
_field1 = 0;
_field2 = 0;
//_field2 = 0;

PublicMehtod();
}
Expand All @@ -123,7 +125,7 @@ protected OrganizeMembersTest(string paramName) : this()
}

// Field3
private static readonly int Field3 = 1;
private static readonly int Field3;
private int _field1;
private static string Field4 = string.Empty;
/// <summary>
Expand All @@ -139,7 +141,7 @@ public static string PublicStaticProp
{
get => InnerProp;
[MemberNotNull(nameof(InnerProp))]
set => InnerProp = value;
set => InnerProp = $"{value}";
}

private static string PrivateStaticProp { get; set; }
Expand Down Expand Up @@ -216,7 +218,7 @@ private static void PrivateStaticMehtod(string hello)
/// The field2
/// </summary>
#pragma warning disable IDE0044 // Add readonly modifier
private int _field2;
private int _field2 = 1;
#pragma warning restore IDE0044 // Add readonly modifier

public Task TaskMethod3Async(CancellationToken cancellationToken)
Expand Down

0 comments on commit 772cd95

Please sign in to comment.