vhdl-style-guide/vsg/rules/context/rule_025.py

31 lines
550 B
Python

# -*- coding: utf-8 -*-
from vsg.rules import blank_line_below_line_ending_with_token
from vsg.token import context_declaration as token
class rule_025(blank_line_below_line_ending_with_token):
"""
This rule adds a blank line below the context semicolon.
|configuring_blank_lines_link|
**Violation**
.. code-block:: vhdl
end context;
entity fifo is
**Fix**
.. code-block:: vhdl
end context;
entity fifo is
"""
def __init__(self):
super().__init__([token.semicolon])