vhdl-style-guide/vsg/rules/subprogram_body/rule_203.py

36 lines
671 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import blank_line_below_line_ending_with_token
lTokens = []
lTokens.append(token.subprogram_body.begin_keyword)
class rule_203(blank_line_below_line_ending_with_token):
"""
This rule checks for a blank line below the **begin** keyword.
|configuring_blank_lines_link|
**Violation**
.. code-block:: vhdl
function overflow (a: integer) return integer is
begin
a <= b;
**Fix**
.. code-block:: vhdl
function overflow (a: integer) return integer is
begin
a <= b;
"""
def __init__(self):
super().__init__(lTokens)