Skip to content

Commit 613f06e

Browse files
author
Kapil Borle
committed
Remove CheckDSCConfiguration switch
We remove this switch because the propery value pairs in a DSC configuration are in fact key value pairs of a hashtable. Since, we already have a switch for checking hashtable, CheckDSCConfiguration switch is redundant.
1 parent 053f141 commit 613f06e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Rules/AlignAssignmentStatement.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,13 @@ private List<Func<TokenOperations, IEnumerable<DiagnosticRecord>>> violationFind
3636
[ConfigurableRuleProperty(defaultValue: true)]
3737
public bool CheckHashtable { get; set; }
3838

39-
[ConfigurableRuleProperty(defaultValue: true)]
40-
public bool CheckDSCConfiguration { get; set; }
41-
4239
public override void ConfigureRule(IDictionary<string, object> paramValueMap)
4340
{
4441
base.ConfigureRule(paramValueMap);
4542
if (CheckHashtable)
4643
{
4744
violationFinders.Add(FindHashtableViolations);
4845
}
49-
50-
if (CheckDSCConfiguration)
51-
{
52-
violationFinders.Add(FindDSCConfigurationViolations);
53-
}
54-
}
55-
56-
private IEnumerable<DiagnosticRecord> FindDSCConfigurationViolations(TokenOperations arg)
57-
{
58-
yield break;
5946
}
6047

6148
private IEnumerable<DiagnosticRecord> FindHashtableViolations(TokenOperations tokenOps)

0 commit comments

Comments
 (0)