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 c722746 commit 7912b03Copy full SHA for 7912b03
Tests/Rules/UseDeclaredVarsMoreThanAssignments.tests.ps1
@@ -58,6 +58,12 @@ function MyFunc2() {
58
Should -Be 0
59
}
60
61
+ It "does not flag `$PSNativeCommandArgumentPassing variable" {
62
+ Invoke-ScriptAnalyzer -ScriptDefinition '$PSNativeCommandArgumentPassing=None' -IncludeRule $violationName | `
63
+ Get-Count | `
64
+ Should -Be 0
65
+ }
66
+
67
It "does not flag global variable" {
68
Invoke-ScriptAnalyzer -ScriptDefinition '$global:x=$null' -IncludeRule $violationName | `
69
Get-Count | `
0 commit comments