You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PSShouldProcess rule in v1.2.0 is triggering with the following definition
functionMyFunction {
[CmdletBinding(SupportsShouldProcess)]
param ()
if ($PSCmdlet.ShouldProcess('Test')) {
}
}
RuleName Severity FileName Line Message
-----------------------------------
PSShouldProcess Warning ShouldProc 1'MyFunction' calls ShouldProcess/ShouldContinue but
ess.ps1 does not have the ShouldProcess attribute.
If I specify a boolean value, the warning goes away.
The
PSShouldProcess
rule in v1.2.0 is triggering with the following definitionIf I specify a boolean value, the warning goes away.
IMHO this is wrong as the
$true
value is not required?The text was updated successfully, but these errors were encountered: