Skip to content

Commit 9e031b8

Browse files
author
Friedrich Weinmann
committed
Globally override the PSShouldProcess test
1 parent 40d706e commit 9e031b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSModuleDevelopment/tests/general/PSScriptAnalyzer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
2020
foreach ($file in $commandFiles)
2121
{
2222
Context "Analyzing $($file.BaseName)" {
23-
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace
23+
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace, PSShouldProcess
2424

2525
forEach ($rule in $scriptAnalyzerRules)
2626
{

0 commit comments

Comments
 (0)