How to use the vsg.rule.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 / semicolon / rule_001.py View on Github external
def __init__(self):
        rule.rule.__init__(self, 'semicolon', '001')
        self.phase = 1
        self.solution = 'Remove consecutive semicolons.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / length / rule_001.py View on Github external
def __init__(self):
        rule.rule.__init__(self, 'length', '001')
        self.phase = 7
        self.solution = None
        self.fixable = False  # The user will have to fix line length violations
        self.disable = False
        self.length = 120
        self.configuration.append('length')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / line_above_rule.py View on Github external
def __init__(self, name=None, identifier=None, sTrigger=None, sUnless=None):
        rule.rule.__init__(self, name, identifier)
        self.solution = 'Insert blank line above.'
        self.phase = 3
        # The user updates the attributes below
        self.condition = sTrigger
        self.sUnless = sUnless
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / process / rule_028.py View on Github external
def __init__(self):
        rule.rule.__init__(self, 'process', '028')
        self.solution = 'Align closing parenthesis with opening parenthesis.'
        self.phase = 5
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / with_statement / rule_001.py View on Github external
def __init__(self):
        rule.rule.__init__(self, 'with', '001')
        self.fixable = False
        self.phase = 1
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / sequential / rule_004.py View on Github external
def __init__(self):
        rule.rule.__init__(self, 'sequential', '004')
        self.solution = 'Align with space after the "<=" keyword.'
        self.phase = 5
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / architecture / rule_025.py View on Github external
def __init__(self):
        rule.rule.__init__(self, 'architecture', '025')
        self.names = []
        self.solution = ''
        self.phase = 7
        self.fixable = False
        self.disable = True
        self.configuration.append('names')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / remove_blank_lines_above_item_rule.py View on Github external
def __init__(self, name, identifier, trigger):
        rule.rule.__init__(self, name=name, identifier=identifier)
        self.solution = 'Remove all but one blank line above this line.'
        self.phase = 3
        self.trigger = trigger
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / whitespace / rule_008.py View on Github external
def __init__(self):
        rule.rule.__init__(self, 'whitespace', '008')
        self.phase = 2
        self.solution = 'Remove spaces after "std_logic_vector".'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / package / rule_007.py View on Github external
def __init__(self):
        rule.rule.__init__(self)
        self.name = 'package'
        self.identifier = '007'
        self.solution = 'End of package follows this format: end package .'
        self.phase = 1