How to use the vsg.rules.indent_rule 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 / case / rule_013.py View on Github external
def __init__(self):
        indent_rule.__init__(self, 'case', '013', 'isCaseNull')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / library / rule_008.py View on Github external
from vsg.rules import indent_rule


class rule_008(indent_rule):
    '''
    Library rule 008 checks indentation of the use keyword.
    '''

    def __init__(self):
        indent_rule.__init__(self, 'library', '008', 'isLibraryUse')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / signal / rule_001.py View on Github external
from vsg.rules import indent_rule


class rule_001(indent_rule):
    '''
    Signal rule 001 checks for the proper indentation at the beginning of the line.
    '''

    def __init__(self):
        indent_rule.__init__(self, 'signal', '001', 'isSignal')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / procedure / rule_003.py View on Github external
from vsg.rules import indent_rule


class rule_003(indent_rule):
    '''
    Procedure rule 003 checks the indent of the "end" keyword.
    '''

    def __init__(self):
        indent_rule.__init__(self, 'procedure', '003', 'isProcedureEnd', 'isProcedureParameter')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / constant / rule_001.py View on Github external
from vsg.rules import indent_rule


class rule_001(indent_rule):
    '''
    Constant rule 001 checks for the proper indentation at the beginning of the line.
    '''

    def __init__(self):
        indent_rule.__init__(self, 'constant', '001', 'isConstant')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / generic / rule_008.py View on Github external
def __init__(self):
        indent_rule.__init__(self, 'generic', '008', 'isEndGenericMap', 'isGenericDeclaration')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / type_definition / rule_005.py View on Github external
from vsg.rules import indent_rule


class rule_005(indent_rule):
    '''
    Type rule 005 checks for the proper indentation of multiline types.
    '''

    def __init__(self):
        indent_rule.__init__(self, 'type', '005', 'insideTypeEnumerated', 'isTypeEnumeratedKeyword')
        self.solution = 'Ensure proper indentation.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / architecture / rule_007.py View on Github external
from vsg.rules import indent_rule


class rule_007(indent_rule):
    '''
    Architecture rule 007 checks for spaces at the beginning of the line for the "begin" keyword.
    '''

    def __init__(self):
        indent_rule.__init__(self, 'architecture', '007', 'isArchitectureBegin')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / architecture / rule_007.py View on Github external
def __init__(self):
        indent_rule.__init__(self, 'architecture', '007', 'isArchitectureBegin')