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 af1bf9f commit 4ccbbeeCopy full SHA for 4ccbbee
Tests/Rules/AvoidInvokingEmptyMembers.tests.ps1
@@ -1,6 +1,6 @@
1
Import-Module PSScriptAnalyzer
2
3
-$violationMessage = "() has non-constant members. Invoking empty members may cause bugs in the script."
+$violationMessage = "() has non-constant members. Invoking non-constant members may cause bugs in the script."
4
$violationName = "PSAvoidInvokingEmptyMembers"
5
$directory = Split-Path -Parent $MyInvocation.MyCommand.Path
6
$violations = Invoke-ScriptAnalyzer $directory\AvoidInvokingEmptyMembers.ps1 | Where-Object {$_.RuleName -eq $violationName}
0 commit comments