vhdl-style-guide/vsg/rules/assert_statement/rule_501.py

34 lines
672 B
Python

from vsg.rules import token_case
from vsg import token
lTokens = []
lTokens.append(token.assertion.report_keyword)
class rule_501(token_case):
'''
This rule checks the **report** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
assert WIDTH > 16
REPORT "FIFO width is limited to 16 bits."
severity FAILURE;
.. code-block:: vhdl
assert WIDTH > 16
report "FIFO width is limited to 16 bits."
severity FAILURE;
'''
def __init__(self):
token_case.__init__(self, lTokens)
self.groups.append('case::keyword')