@@ -33,7 +33,7 @@ public class PlaceCloseBrace : ConfigurableRule
33
33
///
34
34
/// Default value is false.
35
35
/// </summary>
36
- [ ConfigurableRuleProperty ( defaultValue : false ) ]
36
+ [ ConfigurableRuleProperty ( defaultValue : false ) ]
37
37
public bool NoEmptyLineBefore { get ; protected set ; }
38
38
39
39
/// <summary>
@@ -82,11 +82,11 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
82
82
83
83
var tokens = Helper . Instance . Tokens ;
84
84
var diagnosticRecords = new List < DiagnosticRecord > ( ) ;
85
- var curlyStack = new Stack < Tuple < Token , int > > ( ) ;
85
+ var curlyStack = new Stack < Tuple < Token , int > > ( ) ;
86
86
87
87
// TODO move part common with PlaceOpenBrace to one place
88
88
var tokenOps = new TokenOperations ( tokens , ast ) ;
89
- tokensToIgnore = new HashSet < Token > ( tokenOps . GetCloseBracesInCommandElements ( ) ) ;
89
+ tokensToIgnore = new HashSet < Token > ( tokenOps . GetCloseBracesInCommandElements ( ) ) ;
90
90
91
91
// Ignore close braces that are part of a one line if-else statement
92
92
// E.g. $x = if ($true) { "blah" } else { "blah blah" }
@@ -323,7 +323,7 @@ private DiagnosticRecord GetViolationForBraceShouldHaveNewLineAfter(
323
323
if ( ( tokens [ expectedNewLinePos ] . Kind == TokenKind . Else
324
324
|| tokens [ expectedNewLinePos ] . Kind == TokenKind . ElseIf )
325
325
&& ! tokensToIgnore . Contains ( closeBraceToken ) )
326
- {
326
+ {
327
327
return new DiagnosticRecord (
328
328
GetError ( Strings . PlaceCloseBraceErrorShouldFollowNewLine ) ,
329
329
closeBraceToken . Extent ,
0 commit comments