Skip to content

ci(powershell): add an exclude-rules input for deliberate rule violations#98

Merged
Jaro-c merged 1 commit into
mainfrom
ci/powershell-exclude-rules
Jul 17, 2026
Merged

ci(powershell): add an exclude-rules input for deliberate rule violations#98
Jaro-c merged 1 commit into
mainfrom
ci/powershell-exclude-rules

Conversation

@Jaro-c

@Jaro-c Jaro-c commented Jul 17, 2026

Copy link
Copy Markdown
Member

Found by the v1.10.0 consumer proof, before the tag — which is the whole point of the ritual.

podup's install.ps1 uses Write-Host deliberately: the installer is piped through iex, so Write-Output would leak into the expression pipeline. Its old inline lint excluded PSAvoidUsingWriteHost for that reason, and the new powershell-ci reusable had no way to say it — the swap would have gone red on intentional code, and an ignored red is how gates die.

New optional exclude-rules input (comma-separated, -ExcludeRule), empty by default so the shipped strictness is unchanged for everyone else. podup's caller passes the one rule it means.

Test plan: actionlint clean; the splatted invocation is exercised by podup's adoption PR, which is the consumer gate for the tag.

…ions

The first consumer proof caught this: podup's install.ps1 uses Write-Host
on purpose (the script is piped through iex, so Write-Output would pollute
the pipeline), and its old inline lint excluded PSAvoidUsingWriteHost for
exactly that reason. The reusable had no way to express it, so adoption
would have turned the lint red on intentional code. Empty default excludes
nothing, matching the stricter shipped behaviour.

Signed-off-by: Jaro-c <75870284+Jaro-c@users.noreply.github.com>
@Jaro-c
Jaro-c merged commit b12b4c0 into main Jul 17, 2026
4 checks passed
@Jaro-c
Jaro-c deleted the ci/powershell-exclude-rules branch July 17, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant