vhdl-style-guide/vsg/rules/loop_statement/rule_202.py

36 lines
562 B
Python

# -*- coding: utf-8 -*-
from vsg.rules import previous_line
from vsg.token import loop_statement as token
lTokens = []
lTokens.append(token.end_keyword)
class rule_202(previous_line):
"""
This rule checks for blank lines or comments above the **end** keyword.
|configuring_previous_line_rules_link|
**Violation**
.. code-block:: vhdl
loop
a <= b;
end loop;
**Fix**
.. code-block:: vhdl
loop
a <= b;
end loop;
"""
def __init__(self):
super().__init__(lTokens)