We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 988143f commit b2a5b73Copy full SHA for b2a5b73
Tests/Rules/UseConsistentIndentation.tests.ps1
@@ -177,6 +177,18 @@ function test {
177
'@
178
Invoke-Formatter -ScriptDefinition $IdempotentScriptDefinition | Should -Be $idempotentScriptDefinition
179
}
180
+
181
+ It 'Should find violation in script when LParen is first token on a line and is not followed by Newline' {
182
+ $ScriptDefinition = @'
183
+ (foo)
184
+ (bar)
185
+'@
186
+ $ExpectedScriptDefinition = @'
187
+(foo)
188
+(bar)
189
190
+ Invoke-FormatterAssertion $ScriptDefinition $ExpectedScriptDefinition 2 $settings
191
+ }
192
193
194
Context "When a sub-expression is provided" {
0 commit comments