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 {
129
129
get-process |
130
130
where-object {$_.Name -match 'powershell'}
131
131
'@
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
134
134
}
135
135
136
136
It " Should not find a violation if a pipleline element is indented correctly" {
137
137
$def = @'
138
138
get-process |
139
139
where-object {$_.Name -match 'powershell'}
140
140
'@
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
143
143
}
144
144
145
145
It " Should ignore comment in the pipleline" {
@@ -149,8 +149,8 @@ get-process |
149
149
select Name,Id |
150
150
format-list
151
151
'@
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
154
154
}
155
155
156
156
It " Should indent properly after line continuation (backtick) character" {
You can’t perform that action at this time.
0 commit comments