Closed
Description
$sb={
Function Get-MyCommand {
param(
[Parameter(Mandatory=$true,Position=1)]
$ParamMandatory,
[Parameter(Position=2)]
$B,
[Parameter(Position=3)]
$C
)
"Test"
}
Get-MyCommand
Write-verbose
}
Invoke-ScriptAnalyzer -ScriptDefinition "$sb"
This rule does not fire because it only calls the GetCommandInfo() method.
The test file does not contain this use case.