Skip to content

Commit c634d33

Browse files
committed
fix: resolve PSScriptAnalyzer warnings
1 parent 44ab401 commit c634d33

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/validate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ finally {
5050
Pop-Location
5151
}
5252

53-
Write-Host 'CAS platform validation passed.'
53+
Write-Output 'CAS platform validation passed.'
5454

tests/Infrastructure.Tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments', '')]
2+
param()
3+
14
BeforeAll {
2-
$repoRoot = Split-Path -Parent $PSScriptRoot
5+
$repoRoot = Split-Path -Parent -Path $PSScriptRoot
36
$main = Get-Content -Raw (Join-Path $repoRoot 'infra/main.bicep')
47
$compute = Get-Content -Raw (Join-Path $repoRoot 'infra/modules/container-apps.bicep')
58
$observability = Get-Content -Raw (Join-Path $repoRoot 'infra/modules/observability.bicep')

0 commit comments

Comments
 (0)