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

19 lines
488 B
Python

from vsg.rules import blank_line_above_line_starting_with_token
from vsg import token
lTokens = []
lTokens.append(token.subprogram_body.begin_keyword)
lAllowTokens = []
lAllowTokens.append(token.subprogram_body.is_keyword)
class rule_202(blank_line_above_line_starting_with_token):
'''
Checks for a blank line above the begin keyword.
'''
def __init__(self):
blank_line_above_line_starting_with_token.__init__(self, 'function', '202', lTokens, lAllowTokens)