We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e184e3b commit 0df445bCopy full SHA for 0df445b
Tests/Engine/LibraryUsage.tests.ps1
@@ -78,7 +78,7 @@ function Invoke-ScriptAnalyzer {
78
);
79
80
if ($PSCmdlet.ParameterSetName -eq "File") {
81
- $supportsShouldProcessFunc = [Func[string, string, bool]]{ return $true }
+ $supportsShouldProcessFunc = [Func[string, string, bool]]{ return $PSCmdlet.Shouldprocess }
82
if ($Fix.IsPresent)
83
{
84
return $scriptAnalyzer.AnalyzeAndFixPath($Path, $supportsShouldProcessFunc, $Recurse.IsPresent);
0 commit comments