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

This commit is contained in:
Simone
2026-05-13 18:58:20 +02:00
committed by Simone
parent 7e6b65db18
commit 032d6f200e
+6
View File
@@ -11,6 +11,12 @@
'PSUseConsistentIndentation', 'PSUseConsistentIndentation',
'PSUseConsistentWhitespace', '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 # UTF-8 without BOM is the editor default; adding BOM to ~35 files is cosmetic
# and does not affect PS 5.1 execution. # and does not affect PS 5.1 execution.
'PSUseBOMForUnicodeEncodedFile', 'PSUseBOMForUnicodeEncodedFile',