ci(lint): add rule to suppress false positives for param() in remote script blocks

This commit is contained in:
Simone
2026-05-14 18:34:03 +02:00
committed by Simone
parent cb24c3cfad
commit 14958c3f83
+6
View File
@@ -11,6 +11,12 @@
'PSUseConsistentIndentation',
'PSUseConsistentWhitespace',
# The codebase uses the param() + -ArgumentList pattern for remote script blocks
# (Invoke-Command, Start-Job) consistently and correctly. PSSA does not recognise
# param() inside a ScriptBlock as a local declaration, so it fires a false positive
# on every parameter. $Using: is an alternative but not required here.
'PSUseUsingScopeModifierInNewRunspaces',
# UTF-8 without BOM is the editor default; adding BOM to ~35 files is cosmetic
# and does not affect PS 5.1 execution.
'PSUseBOMForUnicodeEncodedFile',