vhdl-style-guide/vsg/rules/entity/rule_004.py

17 lines
403 B
Python

from vsg.rules import case_rule
from vsg import utils
class rule_004(case_rule):
'''
Entity rule 004 checks the "entity" keyword has proper case.
'''
def __init__(self):
case_rule.__init__(self, 'entity', '004', 'isEntityDeclaration')
self.solution = 'Change "entity" keyword to '
def _extract(self, oLine):
return utils.extract_words(oLine, ['entity'])