diff --git a/vsg/rules/file_statement/rule_002.py b/vsg/rules/file_statement/rule_002.py index 2748d15d..76b91fb9 100644 --- a/vsg/rules/file_statement/rule_002.py +++ b/vsg/rules/file_statement/rule_002.py @@ -1,12 +1,13 @@ -from vsg.rules import lower_case_rule +from vsg.rules import case_rule +from vsg import utils -class rule_002(lower_case_rule): +class rule_002(case_rule): ''' - File rule 002 checks the **file** keyword is lowercase. + File rule 002 checks the **file** keyword has proper case. ''' def __init__(self): - lower_case_rule.__init__(self, 'file', '002', 'isFileKeyword', 'file') - self.solution = 'Change the "file" keyword to lowercase.' + case_rule.__init__(self, 'file', '002', 'isFileKeyword', utils.extract_class_name) + self.solution = 'Change file keyword to ' + self.case + 'case'