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

18 lines
474 B
Python

from vsg.rules import blank_line_above_line_starting_with_token
from vsg import token
lTokens = []
lTokens.append(token.component_declaration.end_keyword)
class rule_016(blank_line_above_line_starting_with_token):
'''
Component rule 016 checks for a blank line above the "end component" keywords.
'''
def __init__(self):
blank_line_above_line_starting_with_token.__init__(self, 'component', '016', lTokens)
self.style = 'no_blank_line'