Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self):
keyword_alignment_rule.__init__(self, 'instantiation', '010')
self.solution = 'Inconsistent alignment of "=>" in generic or port assignments of instantiation.'
self.sKeyword = '=>'
self.sStartGroupTrigger = 'isInstantiationDeclaration'
self.sEndGroupTrigger = 'isInstantiationPortEnd'
self.lLineTriggers = ['isInstantiationGenericAssignment', 'isInstantiationPortAssignment']
self.separate_generic_port_alignment = True
self.configuration.append('separate_generic_port_alignment')
self.configuration_triggers += [{'name': 'separate_generic_port_alignment', 'triggers': ['isInstantiationGenericEnd']}]
def __init__(self):
keyword_alignment_rule.__init__(self, 'process', '034')
self.solution = 'Inconsistent alignment of comments process declaration region.'
self.phase = 6
self.sKeyword = '--'
self.sStartGroupTrigger = 'isSensitivityListEnd'
self.sEndGroupTrigger = 'isProcessBegin'
self.lLineTriggers = ['hasInlineComment']
def __init__(self):
keyword_alignment_rule.__init__(self, 'generic', '015')
self.solution = 'Inconsistent alignment of ":=" in generic declaration of entity.'
self.sKeyword = ':='
self.sStartGroupTrigger = 'isGenericKeyword'
self.sEndGroupTrigger = 'isEndGenericMap'
self.lLineTriggers = ['isGenericDeclaration']
def __init__(self):
keyword_alignment_rule.__init__(self, 'after', '002')
self.solution = 'Inconsistent alignment of after keywords.'
self.sKeyword = 'after'
self.sStartGroupTrigger = 'insideClockProcess'
self.sEndGroupTrigger = 'isEndProcess'
self.lLineTriggers = ['hasAfterKeyword']
self.disable = True
def __init__(self):
keyword_alignment_rule.__init__(self, 'process', '035')
self.solution = 'Inconsistent alignment of comments within process.'
self.phase = 6
self.sKeyword = '--'
self.sStartGroupTrigger = 'isProcessBegin'
self.sEndGroupTrigger = 'isEndProcess'
self.lLineTriggers = ['hasInlineComment']
def __init__(self):
keyword_alignment_rule.__init__(self, 'process', '033')
self.sKeyword = ':'
self.sStartGroupTrigger = 'isProcessKeyword'
self.sEndGroupTrigger = 'isProcessBegin'
self.lLineTriggers = ['isConstant', 'isVariable', 'insideFile']
self.solution = 'Align colon with right most colon.'
def __init__(self):
keyword_alignment_rule.__init__(self, 'architecture', '026')
self.sKeyword = ':'
self.sStartGroupTrigger = 'isArchitectureKeyword'
self.sEndGroupTrigger = 'isArchitectureBegin'
self.lLineTriggers = ['isConstant', 'isSignal', 'insideFile']
self.solution = 'Align colon with right most colon.'
def __init__(self):
keyword_alignment_rule.__init__(self, 'variable', '009')
self.solution = 'Align colon with right most colon.'
self.sKeyword = ':'
self.sStartGroupTrigger = 'isArchitectureKeyword'
self.sEndGroupTrigger = 'isArchitectureBegin'
self.sLineTrigger = 'isVariable'
def __init__(self):
keyword_alignment_rule.__init__(self, 'component', '017')
self.solution = 'Inconsistent alignment of ":" in generic or port declaration of component.'
self.sKeyword = ':'
self.sStartGroupTrigger = 'isComponentDeclaration'
self.sEndGroupTrigger = 'isComponentEnd'
self.lLineTriggers = ['isGenericDeclaration', 'isPortDeclaration']
self.separate_generic_port_alignment = True
self.configuration.append('separate_generic_port_alignment')
self.configuration_triggers += [{'name': 'separate_generic_port_alignment', 'triggers': ['isEndGenericMap']}]