File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -129,17 +129,17 @@ function foo {
129129get-process |
130130where-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 = @'
138138get-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 |
149149select 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" {
You can’t perform that action at this time.
0 commit comments