File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ Import-Module PSScriptAnalyzer
5
5
Import-Module (Join-Path $testRootDirectory " PSScriptAnalyzerTestHelper.psm1" )
6
6
7
7
$ruleConfiguration = @ {
8
- Enable = $true
9
- NoEmptyLineBefore = $true
8
+ Enable = $true
9
+ NoEmptyLineBefore = $true
10
10
IgnoreOneLineBlock = $true
11
- NewLineAfter = $true
11
+ NewLineAfter = $true
12
12
}
13
13
14
14
$settings = @ {
15
15
IncludeRules = @ (" PSPlaceCloseBrace" )
16
- Rules = @ {
16
+ Rules = @ {
17
17
PSPlaceCloseBrace = $ruleConfiguration
18
18
}
19
19
}
@@ -148,11 +148,11 @@ if (Test-Path "blah") {
148
148
$violations = Invoke-ScriptAnalyzer - ScriptDefinition $def - Settings $settings
149
149
$violations.Count | Should Be 1
150
150
$params = @ {
151
- RawContent = $def
151
+ RawContent = $def
152
152
DiagnosticRecord = $violations [0 ]
153
153
CorrectionsCount = 1
154
- ViolationText = ' }'
155
- CorrectionText = ' }' + [System.Environment ]::NewLine
154
+ ViolationText = ' }'
155
+ CorrectionText = ' }' + [System.Environment ]::NewLine
156
156
}
157
157
Test-CorrectionExtentFromContent @params
158
158
}
@@ -168,11 +168,11 @@ if (Test-Path "blah") {
168
168
$violations = Invoke-ScriptAnalyzer - ScriptDefinition $def - Settings $settings
169
169
$violations.Count | Should Be 1
170
170
$params = @ {
171
- RawContent = $def
171
+ RawContent = $def
172
172
DiagnosticRecord = $violations [0 ]
173
173
CorrectionsCount = 1
174
- ViolationText = ' }'
175
- CorrectionText = ' }' + [System.Environment ]::NewLine
174
+ ViolationText = ' }'
175
+ CorrectionText = ' }' + [System.Environment ]::NewLine
176
176
}
177
177
Test-CorrectionExtentFromContent @params
178
178
}
You can’t perform that action at this time.
0 commit comments