vhdl-style-guide/vsg/rules/entity/rule_008.py

32 lines
616 B
Python

from vsg.rules import token_case_with_prefix_suffix
from vsg import token
lTokens = []
lTokens.append(token.entity_declaration.identifier)
class rule_008(token_case_with_prefix_suffix):
'''
This rule checks the entity name has proper case in the entity declaration.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
entity Fifo is
**Fix**
.. code-block:: vhdl
entity fifo is
'''
def __init__(self):
token_case_with_prefix_suffix.__init__(self, 'entity', '008', lTokens)
self.groups.append('case::name')