Skip to content

Commit a255259

Browse files
author
Kapil Borle
committed
Format UseConsistentIndentation.tests.ps1
1 parent e545d5b commit a255259

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/Rules/UseConsistentIndentation.tests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,17 @@ function foo {
129129
get-process |
130130
where-object {$_.Name -match 'powershell'}
131131
'@
132-
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
133-
$violations.Count | Should Be 1
132+
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
133+
$violations.Count | Should Be 1
134134
}
135135

136136
It "Should not find a violation if a pipleline element is indented correctly" {
137137
$def = @'
138138
get-process |
139139
where-object {$_.Name -match 'powershell'}
140140
'@
141-
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
142-
$violations.Count | Should Be 0
141+
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
142+
$violations.Count | Should Be 0
143143
}
144144

145145
It "Should ignore comment in the pipleline" {
@@ -149,8 +149,8 @@ get-process |
149149
select Name,Id |
150150
format-list
151151
'@
152-
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
153-
$violations.Count | Should Be 3
152+
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
153+
$violations.Count | Should Be 3
154154
}
155155

156156
It "Should indent properly after line continuation (backtick) character" {

0 commit comments

Comments
 (0)