ci(lint): add rule to suppress false positives for param() in remote script blocks
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user