vhdl-style-guide/vsg/rules/generic/rule_009.py

32 lines
536 B
Python

from vsg.rules import token_case
from vsg import token
lTokens = []
lTokens.append(token.generic_clause.generic_keyword)
class rule_009(token_case):
'''
This rule checks the **generic** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
GENERIC (
**Fix**
.. code-block:: vhdl
generic (
'''
def __init__(self):
token_case.__init__(self, 'generic', '009', lTokens)
self.groups.append('case::keyword')