vhdl-style-guide/vsg/rules/concurrent/rule_008.py

17 lines
565 B
Python

from vsg.rules import keyword_alignment_rule
class rule_008(keyword_alignment_rule):
'''
Concurrent rule 008 ensures the alignment of inline comments in sequential concurrent statements.
'''
def __init__(self):
keyword_alignment_rule.__init__(self, 'concurrent', '008')
self.solution = 'Inconsistent alignment of comments in group of lines.'
self.sKeyword = '--'
self.sStartGroupTrigger = 'isArchitectureBegin'
self.sEndGroupTrigger = 'isEndArchitecture'
self.lLineTriggers = ['insideConcurrent']