vhdl-style-guide/vsg/rules/case/rule_016.py

17 lines
391 B
Python

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