Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Dec 13, 2024
1 parent 77ed91e commit fb447ce
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 27 deletions.
16 changes: 5 additions & 11 deletions eng/mark-shipped.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,11 @@ function Set-AsShipped([Parameter(Mandatory)][string]$Directory) {
}
}

$shipped | Sort-Object | Where-Object { -notin $removed } | Out-File $shippedFilePath -Encoding utf8
"" | Out-File $unshippedFilePath -Encoding utf8
$shipped | Sort-Object | Where-Object { $_ -notin $removed } | Out-File $shippedFilePath -Encoding utf8
"#nullable enable" | Out-File $unshippedFilePath -Encoding utf8
}

try {
foreach ($file in Get-ChildItem "$PSScriptRoot\..\src" -Recurse -Include "PublicApi.Shipped.txt") {
$Directory = Split-Path -parent $file
MarkShipped $Directory
}
}
catch {
Write-Host $_.Exception
exit 1
foreach ($file in Get-ChildItem "$PSScriptRoot\..\src" -Recurse -Include "PublicApi.Shipped.txt") {
$Directory = Split-Path -parent $file
Set-AsShipped $Directory
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
2 changes: 1 addition & 1 deletion src/Analyzers/MSTest.Analyzers/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable

0 comments on commit fb447ce

Please sign in to comment.