Skip to content

Commit 1084567

Browse files
committed
maybe fixing last edge case
1 parent 3383f7a commit 1084567

16 files changed

+98
-102
lines changed

Shell/DeleteReviewBranches.psm1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
function CSH-DeleteReviewBranches {
2+
3+
# TODO probably make this configurable
4+
$pathToTestingRepo = "C:/Projects/csharpier-repos"
5+
Set-Location $pathToTestingRepo
6+
7+
git checkout main
8+
git branch | Where-Object { $_ -notmatch "main" } | ForEach-Object { git branch -D $_ }
9+
git branch -r | Where-Object { $_ -notmatch "origin/main" } | ForEach-Object { git push origin --delete $_.Replace("origin/", "").Trim() }
10+
}
11+
12+
Export-ModuleMember -Function CSH-*

Src/CSharpier.Tests/FormattingTests/TestFiles/cs/Directives_CompilationUnit.test

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
// leading
2-
using First; // trailing
3-
2+
using A; // trailing
43
// leading with space
54
using // another trailing
6-
Second;
7-
8-
using
9-
// static leading
10-
static // static trailing
11-
Third;
12-
13-
using M = System.Math;
14-
using Point = (int x, int y);
15-
16-
using static System.Math;
17-
18-
global using System;
19-
20-
using First;
21-
using Second;
5+
B;
226

237
namespace Namespace
248
{
25-
using Third;
269
using One.Two.Three;
10+
using Third;
2711

2812
public class ClassName { }
2913
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
using System;
12
#if DEBUG
23
using Insite.Bad;
34
#endif
4-
using System;

Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_Basics.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ global using Global;
22
using System;
33
using Custom;
44
using static Expression;
5+
using Point = (int x, int y);
56
using Index = Microsoft.Framework.Index;

Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase1.expected.test

Lines changed: 0 additions & 8 deletions
This file was deleted.

Src/CSharpier.Tests/FormattingTests/TestFiles/cs/UsingDirectives_EdgeCase1.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ using Microsoft.Build.Framework;
44

55
namespace RepoTasks;
66

7+
class ClassName { }
8+
79
#endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
using System.IO;
2+
#if DEBUG
3+
using System;
4+
#else
5+
using Microsoft;
6+
#endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
using System.IO;
2+
#if !DEBUG
3+
using System;
4+
#else
5+
using Microsoft;
6+
#endif
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#if DEBUG
2+
using A;
3+
#else
4+
using B;
5+
#endif
6+
#if !DEBUG
7+
using C;
8+
#endif

0 commit comments

Comments
 (0)