vhdl-style-guide/vsg/rules/case/rule_018.py

36 lines
636 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_case
lTokens = []
lTokens.append(token.case_statement.end_case_keyword)
class rule_018(token_case):
"""
This rule checks the **case** keyword has proper case in the **end case**.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
end CASE;
end CAse;
end case;
**Fix**
.. code-block:: vhdl
end case;
end case;
end case;
"""
def __init__(self):
super().__init__(lTokens)
self.groups.append("case::keyword")