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

14 lines
363 B
Python

from vsg.rules import case_rule
from vsg import utils
class rule_004(case_rule):
'''
Function rule 004 checks the "begin" keyword has proper case.
'''
def __init__(self):
case_rule.__init__(self, 'function', '004', 'isFunctionBegin', utils.extract_begin_keyword)
self.solution = 'Change begin keyword to ' + self.case + 'case'