File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Close brace placement should follow a consistent style. It should be on a new li
13
13
Enable = $true
14
14
NoEmptyLineBefore = $false
15
15
IgnoreOneLineBlock = $true
16
+ NewLineAfter = $true
16
17
}
17
18
}
18
19
```
@@ -28,4 +29,7 @@ Create violation if there is an empty line before a close brace.
28
29
#### IgnoreOneLineBlock: bool (Default value is ` $true ` )
29
30
Indicates if close braces in a one line block should be ignored or not.
30
31
E.g. $x = if ($true) { "blah" } else { "blah blah" }
31
- In the above example, if the property is set to true then the rule will not fire a violation.
32
+ In the above example, if the property is set to true then the rule will not fire a violation.
33
+
34
+ #### NewLineAfter: bool (Default value is ` $true ` )
35
+ Indicates if a new line should follow a close brace. If set to true a close brace should be followed by a new line.
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class PlaceCloseBrace : ConfigurableRule
31
31
/// <summary>
32
32
/// Indicates if there should or should not be an empty line before a close brace.
33
33
///
34
- /// Default value if false.
34
+ /// Default value is false.
35
35
/// </summary>
36
36
[ ConfigurableRuleProperty ( defaultValue : false ) ]
37
37
public bool NoEmptyLineBefore { get ; protected set ; }
@@ -42,17 +42,17 @@ public class PlaceCloseBrace : ConfigurableRule
42
42
/// In the above example, if the property is set to true then the rule will
43
43
/// not fire a violation.
44
44
///
45
- /// Default value if true.
45
+ /// Default value is true.
46
46
/// </summary>
47
47
[ ConfigurableRuleProperty ( defaultValue : true ) ]
48
48
public bool IgnoreOneLineBlock { get ; protected set ; }
49
49
50
50
/// <summary>
51
51
/// Indicates if a new line should follow a close brace.
52
52
///
53
- /// If set to true a close brace should not be followed by any keyword .
53
+ /// If set to true a close brace should be followed by a new line .
54
54
///
55
- /// Default value if true.
55
+ /// Default value is true.
56
56
/// </summary>
57
57
[ ConfigurableRuleProperty ( defaultValue : true ) ]
58
58
public bool NewLineAfter { get ; protected set ; }
You can’t perform that action at this time.
0 commit comments