How to use the vsg.rules.keyword_alignment_rule.__init__ function in vsg

To help you get started, we’ve selected a few vsg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jeremiah-c-leary / vhdl-style-guide / vsg / rules / instantiation / rule_010.py View on Github external
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']}]
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / process / rule_034.py View on Github external
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']
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / generic / rule_015.py View on Github external
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']
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / after / rule_002.py View on Github external
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
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / process / rule_035.py View on Github external
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']
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / process / rule_033.py View on Github external
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.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / architecture / rule_026.py View on Github external
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.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / variable / rule_009.py View on Github external
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'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / component / rule_017.py View on Github external
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']}]