diff --git a/vsg/rules/if_statement/rule_025.py b/vsg/rules/if_statement/rule_025.py index 413734a5..9b8fb7e3 100644 --- a/vsg/rules/if_statement/rule_025.py +++ b/vsg/rules/if_statement/rule_025.py @@ -1,11 +1,13 @@ -from vsg.rules import lower_case_rule +from vsg.rules import case_rule +from vsg import utils -class rule_025(lower_case_rule): +class rule_025(case_rule): ''' - If rule 001 checks the **if** keyword is lowercase. + If rule 025 checks the **if** keyword has proper case. ''' def __init__(self): - lower_case_rule.__init__(self, 'if', '025', 'isIfKeyword', 'if') + case_rule.__init__(self, 'if', '025', 'isIfKeyword', utils.extract_first_word) + self.solution = 'Change if keyword to ' + self.case + 'case'