-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
98 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function CSH-DeleteReviewBranches { | ||
|
||
# TODO probably make this configurable | ||
$pathToTestingRepo = "C:/Projects/csharpier-repos" | ||
Set-Location $pathToTestingRepo | ||
|
||
git checkout main | ||
git branch | Where-Object { $_ -notmatch "main" } | ForEach-Object { git branch -D $_ } | ||
git branch -r | Where-Object { $_ -notmatch "origin/main" } | ForEach-Object { git push origin --delete $_.Replace("origin/", "").Trim() } | ||
} | ||
|
||
Export-ModuleMember -Function CSH-* |
19 changes: 0 additions & 19 deletions
19
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/Directives_CompilationUnit.test
This file was deleted.
Oops, something went wrong.
22 changes: 3 additions & 19 deletions
22
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
// leading | ||
using First; // trailing | ||
|
||
using A; // trailing | ||
// leading with space | ||
using // another trailing | ||
Second; | ||
|
||
using | ||
// static leading | ||
static // static trailing | ||
Third; | ||
|
||
using M = System.Math; | ||
using Point = (int x, int y); | ||
|
||
using static System.Math; | ||
|
||
global using System; | ||
|
||
using First; | ||
using Second; | ||
B; | ||
|
||
namespace Namespace | ||
{ | ||
using Third; | ||
using One.Two.Three; | ||
using Third; | ||
|
||
public class ClassName { } | ||
} |
2 changes: 1 addition & 1 deletion
2
...harpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_BasicIfDirective.expected.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System; | ||
#if DEBUG | ||
using Insite.Bad; | ||
#endif | ||
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase1.expected.test
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ using Microsoft.Build.Framework; | |
|
||
namespace RepoTasks; | ||
|
||
class ClassName { } | ||
|
||
#endif |
6 changes: 6 additions & 0 deletions
6
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase2.expected.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System.IO; | ||
#if DEBUG | ||
using System; | ||
#else | ||
using Microsoft; | ||
#endif |
6 changes: 6 additions & 0 deletions
6
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase3.expected.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System.IO; | ||
#if !DEBUG | ||
using System; | ||
#else | ||
using Microsoft; | ||
#endif |
8 changes: 8 additions & 0 deletions
8
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase4.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#if DEBUG | ||
using A; | ||
#else | ||
using B; | ||
#endif | ||
#if !DEBUG | ||
using C; | ||
#endif |
10 changes: 10 additions & 0 deletions
10
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase5.expected.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using C; | ||
#if DEBUG | ||
using A; | ||
#else | ||
using B; | ||
#endif | ||
|
||
#if !DEBUG | ||
using C; | ||
#endif |
9 changes: 9 additions & 0 deletions
9
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase5.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#if DEBUG | ||
using A; | ||
#else | ||
using B; | ||
#endif | ||
using C; | ||
#if !DEBUG | ||
using C; | ||
#endif |
6 changes: 2 additions & 4 deletions
6
...harpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_SortsSystemToTop.expected.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
using System; | ||
|
||
using System.Web; // keeping the blank line above this in the expected is odd, but there isn't a good way to know which spaces to remove besides the first one | ||
|
||
using AWord; // the blank line above here tests that we don't add two blank lines between system and non-system | ||
using System.Web; | ||
using AWord; | ||
using ZWord; |
6 changes: 2 additions & 4 deletions
6
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_SortsSystemToTop.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
using ZWord; | ||
|
||
using AWord; // the blank line above here tests that we don't add two blank lines between system and non-system | ||
|
||
using System.Web; // keeping the blank line above this in the expected is odd, but there isn't a good way to know which spaces to remove besides the first one | ||
using AWord; | ||
using System.Web; | ||
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters