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
55Import-Module (Join-Path $testRootDirectory " PSScriptAnalyzerTestHelper.psm1" )
66
77$ruleConfiguration = @ {
8- Enable = $true
9- NoEmptyLineBefore = $true
8+ Enable = $true
9+ NoEmptyLineBefore = $true
1010 IgnoreOneLineBlock = $true
11- NewLineAfter = $true
11+ NewLineAfter = $true
1212}
1313
1414$settings = @ {
1515 IncludeRules = @ (" PSPlaceCloseBrace" )
16- Rules = @ {
16+ Rules = @ {
1717 PSPlaceCloseBrace = $ruleConfiguration
1818 }
1919}
@@ -148,11 +148,11 @@ if (Test-Path "blah") {
148148 $violations = Invoke-ScriptAnalyzer - ScriptDefinition $def - Settings $settings
149149 $violations.Count | Should Be 1
150150 $params = @ {
151- RawContent = $def
151+ RawContent = $def
152152 DiagnosticRecord = $violations [0 ]
153153 CorrectionsCount = 1
154- ViolationText = ' }'
155- CorrectionText = ' }' + [System.Environment ]::NewLine
154+ ViolationText = ' }'
155+ CorrectionText = ' }' + [System.Environment ]::NewLine
156156 }
157157 Test-CorrectionExtentFromContent @params
158158 }
@@ -168,11 +168,11 @@ if (Test-Path "blah") {
168168 $violations = Invoke-ScriptAnalyzer - ScriptDefinition $def - Settings $settings
169169 $violations.Count | Should Be 1
170170 $params = @ {
171- RawContent = $def
171+ RawContent = $def
172172 DiagnosticRecord = $violations [0 ]
173173 CorrectionsCount = 1
174- ViolationText = ' }'
175- CorrectionText = ' }' + [System.Environment ]::NewLine
174+ ViolationText = ' }'
175+ CorrectionText = ' }' + [System.Environment ]::NewLine
176176 }
177177 Test-CorrectionExtentFromContent @params
178178 }
You can’t perform that action at this time.
0 commit comments