vhdl-style-guide/vsg/rules/component/rule_012.py

32 lines
628 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_case_with_prefix_suffix
lTokens = []
lTokens.append(token.component_declaration.component_simple_name)
class rule_012(token_case_with_prefix_suffix):
"""
This rule checks the proper case of the component name in the **end component** line.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
end component FIFO;
**Fix**
.. code-block:: vhdl
end component fifo;
"""
def __init__(self):
super().__init__(lTokens)
self.groups.append("case::name")