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 868640d commit 098139fCopy full SHA for 098139f
Tests/Rules/PlaceCloseBrace.tests.ps1
@@ -97,10 +97,7 @@ $hashtable = @{a = 1; b = 2}
97
}
98
99
It "Should not crash when hashtable is defined on first token" {
100
- $def = @'
101
- @{
102
- key = value }
103
-'@
+ $def = "@{ `n Key = value }"
104
105
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings -ErrorAction Stop
106
$violations.Count | Should -Be 1
0 commit comments