vhdl-style-guide/vsg/rules/if_statement/rule_028.py

36 lines
549 B
Python

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