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

34 lines
642 B
Python

from vsg import token
from vsg.rules.whitespace_after_token import Rule
lTokens = []
lTokens.append(token.assertion.keyword)
class rule_100(Rule):
'''
This rule checks for a single space after the **assert** keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
assert WIDTH > 16
report "FIFO width is limited to 16 bits."
severity FAILURE;
**Fix**
.. code-block:: vhdl
assert WIDTH > 16
report "FIFO width is limited to 16 bits."
severity FAILURE;
'''
def __init__(self):
Rule.__init__(self, lTokens)