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

32 lines
557 B
Python

from vsg.rules import token_case
from vsg import token
lTokens = []
lTokens.append(token.package_declaration.end_keyword)
class rule_006(token_case):
'''
This rule checks the **end** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
END package fifo_pkg;
**Fix**
.. code-block:: vhdl
end package fifo_pkg;
'''
def __init__(self):
token_case.__init__(self, 'package', '006', lTokens)
self.groups.append('case::keyword')