vhdl-style-guide/vsg/rules/report_statement/rule_001.py

27 lines
643 B
Python

# -*- coding: utf-8 -*-
from vsg.rules import remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace
from vsg.token import report_statement as token
class rule_001(remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace):
"""
This rule removes labels on report_statement_statements.
**Violation**
.. code-block:: vhdl
REPORT_LABEL : report "FIFO width is limited to 16 bits.";
**Fix**
.. code-block:: vhdl
report "FIFO width is limited to 16 bits.";
"""
def __init__(self):
super().__init__(token.label, token.label_colon)
self.solution = "Remove Label"