vhdl-style-guide/vsg/rules/process/rule_028.py

36 lines
954 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import align_left_token_with_right_token_if_right_token_starts_a_line
oLeftToken = token.process_statement.open_parenthesis
oRightToken = token.process_statement.close_parenthesis
class rule_028(align_left_token_with_right_token_if_right_token_starts_a_line):
"""
This rule checks the alignment of the closing parenthesis of a sensitivity list.
Parenthesis on multiple lines should be in the same column.
|configuring_keyword_alignment_rules_link|
**Violation**
.. code-block:: vhdl
proc_a : process (rd_en, wr_en, data_in, data_out,
rd_full, wr_full
)
**Fix**
.. code-block:: vhdl
proc_a : process (rd_en, wr_en, data_in, data_out,
rd_full, wr_full
)
"""
def __init__(self):
super().__init__(oLeftToken, oRightToken)