@@ -30,29 +30,7 @@ public class UseConsistentCasing : ConfigurableRule
3030 [ ConfigurableRuleProperty ( defaultValue : true ) ]
3131 public bool CheckKeyword { get ; set ; }
3232
33- /*
34- * Hypothetically, we could support UPPERCASE but that is awful, and ...
35- * Anything else would require this analyzer to **make up** the correct capitalization.
36- private enum Casing { uppercase, lowercase }
37- private Casing casing;
38- /// <summary>By default, switch to lowercase (or uppercase (defaults to lowercase)</summary>
39- /// <remarks>Any other "consistent" case would just </remarks>
40- [ConfigurableRuleProperty(defaultValue: "lowercase")]
41- public string Case
42- {
43- get
44- {
45- return casing.ToString();
46- }
47- set
48- {
49- if (String.IsNullOrWhiteSpace(value) || !Enum.TryParse<Casing>(value, true, out casing))
50- {
51- casing = Casing.lowercase;
52- }
53- }
54- }
55- */
33+ private TokenFlags operators = TokenFlags . BinaryOperator | TokenFlags . UnaryOperator ;
5634
5735 /// <summary>
5836 /// AnalyzeScript: Analyze the script to verify consistency of keyword and operator case
@@ -63,7 +41,6 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
6341 {
6442 throw new ArgumentNullException ( Strings . NullAstErrorMessage ) ;
6543 }
66- TokenFlags operators = TokenFlags . BinaryOperator | TokenFlags . UnaryOperator ;
6744
6845 // Iterates all keywords and check the case
6946 for ( int i = 0 ; i < Helper . Instance . Tokens . Length ; i ++ )
@@ -115,7 +92,6 @@ private DiagnosticRecord GetDiagnosticRecord(Token token, string fileName, strin
11592 suggestedCorrections : extents ) ;
11693 }
11794
118-
11995 /// <summary>
12096 /// GetName: Retrieves the name of this rule.
12197 /// </summary>
0 commit comments