Steps to reproduce
$res=Invoke-ScriptAnalyzer-path 'C:\Program Files\WindowsPowerShell\Modules\PSScriptAnalyzer\1.16.1\PSScriptAnalyzer.psd1'-ExcludeRule PSUseToExportFieldsInManifest
Expected behavior
No error.
Actual behavior
Invoke-ScriptAnalyzer : L'index se trouve en dehors des limites du tableau.
At line:1 char:6
+ $res=Invoke-ScriptAnalyzer -path 'C:\Program Files\WindowsPowerShell\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (C:\Program File...ptAnalyzer.psd1:String) [Invoke-ScriptAnalyzer], Cm
dletInvocationException
+ FullyQualifiedErrorId : RULE_ERROR,Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands.InvokeScriptAnalyzerComm
and
Environment data
$psversiontable
Name Value
---------
PSVersion 5.1.14409.1012
PSEdition Desktop
PSCompatibleVersions {1.0,2.0,3.0,4.0,5.0,5.1.14409.1012}
BuildVersion 10.0.14409.1012
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
(Get-Module-ListAvailable PSScriptAnalyzer).Version |ForEach-Object { $_.ToString() }
1.16.11.16.01.15.01.12.01.11.1See also the issue #900
Steps to reproduce
Expected behavior
No error.
Actual behavior
Environment data
See also the issue #900