Skip to content

Commit a91cf7c

Browse files
author
Kapil Borle
committed
Add switch to enforce new line after close brace
1 parent 70b1322 commit a91cf7c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Rules/PlaceCloseBrace.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ public class PlaceCloseBrace : ConfigurableRule
4747
[ConfigurableRuleProperty(defaultValue: true)]
4848
public bool IgnoreOneLineBlock { get; protected set; }
4949

50+
/// <summary>
51+
/// Indicates if a new line should follow a close brace.
52+
///
53+
/// If set to true a close brace should not be followed by any keyword.
54+
///
55+
/// Default value if true.
56+
/// </summary>
57+
[ConfigurableRuleProperty(defaultValue: true)]
58+
public bool NewLineAfter { get; protected set; }
59+
5060
private HashSet<Token> tokensToIgnore;
5161

5262
/// <summary>

0 commit comments

Comments
 (0)