vhdl-style-guide/vsg/rules/package/rule_013.py

17 lines
390 B
Python

from vsg.rules import case_rule
from vsg import utils
class rule_013(case_rule):
'''
Package rule 013 checks the "is" keyword has proper case.
'''
def __init__(self):
case_rule.__init__(self, 'package', '013', 'isPackageKeyword')
self.solution = 'Change "is" keyword to '
def _extract(self, oLine):
return utils.extract_words(oLine, ['is'])