Skip to content

Commit 2e9940e

Browse files
author
Kapil Borle
committed
Add configurable properties to AlignAssignmentStatement rule
1 parent 5de8ab9 commit 2e9940e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Rules/AlignAssignmentStatement.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
2828
#endif
2929
class AlignAssignmentStatement : ConfigurableRule
3030
{
31+
32+
[ConfigurableRuleProperty(defaultValue:true)]
33+
public bool AlignInHashtable { get; set; }
34+
35+
[ConfigurableRuleProperty(defaultValue:true)]
36+
public bool AlignInDSCConfiguration { get; set; }
37+
3138
/// <summary>
3239
/// Analyzes the given ast to find if consecutive assignment statements are aligned.
3340
/// </summary>

0 commit comments

Comments
 (0)