ci(lint): enhance PSScriptAnalyzer settings and suppress false positives; improve error handling in scripts

This commit is contained in:
Simone
2026-05-13 19:06:50 +02:00
committed by Simone
parent 032d6f200e
commit 2ac26dbd00
11 changed files with 42 additions and 24 deletions
+2 -2
View File
@@ -329,7 +329,7 @@ function New-WinIsoNoPrompt {
$fsi.VolumeName = $label
$fsi.ChooseImageDefaultsForMediaType(13)
# 5+ GB ISO needs explicit large-volume defaults if available.
try { $fsi.UDFRevision = 0x102 } catch {}
try { $fsi.UDFRevision = 0x102 } catch { Write-Verbose "UDF revision not supported on this IMAPI version." }
Write-Host " Adding ISO tree (this takes a few minutes for 5+ GB)..." -ForegroundColor Yellow
$fsi.Root.AddTree($letter, $false)
@@ -1114,4 +1114,4 @@ Write-Host " .\Validate-DeployState.ps1 -VMIPAddress $guestIP"
Write-Host " .\Prepare-WinBuild2025.ps1 -VMIPAddress $guestIP [-SkipWindowsUpdate]"
Write-Host ""
Write-Host " VM is powered on with vmxnet3 + DHCP. Snapshot '$SnapshotName' taken." -ForegroundColor Green