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 83927b3 commit c67e81eCopy full SHA for c67e81e
Tests/Rules/PlaceCloseBrace.tests.ps1
@@ -324,5 +324,19 @@ try {
324
'@
325
Invoke-Formatter -ScriptDefinition $def -Settings $settings | Should Be $expected
326
}
327
+
328
+ It "Should not find violations when a script has two close braces in succession" {
329
+ $def = @'
330
+function foo {
331
+if ($true) {
332
+"true"
333
+} else {
334
+"false"
335
+}
336
337
+'@
338
+ $violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
339
+ $violations.Count | Should Be 0
340
+ }
341
342
0 commit comments