diff --git a/PSScriptAnalyzerSettings.psd1 b/PSScriptAnalyzerSettings.psd1 index 976f17b..b348f5e 100644 --- a/PSScriptAnalyzerSettings.psd1 +++ b/PSScriptAnalyzerSettings.psd1 @@ -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',