Skip to content

Commit 9b379a0

Browse files
committed
ci(lint): exclude Write-Host rule for installer scripts
1 parent ba57e9d commit 9b379a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/script-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
shell: pwsh
4141
run: |
4242
Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser
43-
$results = Invoke-ScriptAnalyzer -Path ./install.ps1 -Severity Error,Warning
43+
# Exclude PSAvoidUsingWriteHost - Write-Host is intentional for colored installer output
44+
$results = Invoke-ScriptAnalyzer -Path ./install.ps1 -Severity Error,Warning -ExcludeRule PSAvoidUsingWriteHost,PSUseBOMForUnicodeEncodedFile
4445
if ($results) {
4546
$results | Format-Table -AutoSize
4647
exit 1

0 commit comments

Comments
 (0)