vhdl-style-guide/vsg/rules/component/rule_016.py

39 lines
692 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import blank_line_above_line_starting_with_token
lTokens = []
lTokens.append(token.component_declaration.end_keyword)
class rule_016(blank_line_above_line_starting_with_token):
"""
This rule checks for blank lines above the **end component** line.
|configuring_blank_lines_link|
**Violation**
.. code-block:: vhdl
overflow : std_logic
);
end component fifo;
**Fix**
.. code-block:: vhdl
overflow : std_logic
);
end component fifo;
"""
def __init__(self):
super().__init__(lTokens)
self.style = "no_blank_line"