vhdl-style-guide/vsg/rules/if_statement/rule_032.py

16 lines
607 B
Python

from vsg.rules import align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token
from vsg.token import if_statement as token
class rule_032(align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token):
'''
Checks consecutive comment lines above an "elsif" keyword
in an if statement are aligned with the "elsif" keyword.
'''
def __init__(self):
align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token.__init__(self, 'if', '032', token.elsif_keyword)
self.solution = 'Align comment with *elsif* keyword.'