How to use the vsg.rules.single_space_after_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 / entity / rule_002.py View on Github external
def __init__(self):
        single_space_after_rule.__init__(self, 'entity', '002', 'isEntityDeclaration', 'entity')
        self.solution = 'Remove extra spaces after entity keyword.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / function / rule_002.py View on Github external
def __init__(self):
        single_space_after_rule.__init__(self, 'function', '002', 'isFunctionKeyword', 'function')
        self.solution = 'Ensure a single space exists between the "function" keyword and the function name.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / generic / rule_003.py View on Github external
from vsg.rules import single_space_after_rule


class rule_003(single_space_after_rule):
    '''
    Generic rule 003 checks spacing between "generic" keyword and the open parenthesis.
    '''

    def __init__(self):
        single_space_after_rule.__init__(self, 'generic', '003', 'isGenericKeyword', 'generic')
        self.solution = 'Change spacing between "generic" and "(" to one space.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / function / rule_002.py View on Github external
from vsg.rules import single_space_after_rule


class rule_002(single_space_after_rule):
    '''
    Function rule 002 checks there is a single space between the function keyword and the function name.
    '''

    def __init__(self):
        single_space_after_rule.__init__(self, 'function', '002', 'isFunctionKeyword', 'function')
        self.solution = 'Ensure a single space exists between the "function" keyword and the function name.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / entity / rule_002.py View on Github external
from vsg.rules import single_space_after_rule


class rule_002(single_space_after_rule):
    '''
    Entity rule 002 checks for a single space after the entity keyword.
    '''

    def __init__(self):
        single_space_after_rule.__init__(self, 'entity', '002', 'isEntityDeclaration', 'entity')
        self.solution = 'Remove extra spaces after entity keyword.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / component / rule_002.py View on Github external
from vsg.rules import single_space_after_rule


class rule_002(single_space_after_rule):
    '''
    Component rule 002 checks for a single space after the "component" keyword.
    '''

    def __init__(self):
        single_space_after_rule.__init__(self, 'component', '002', 'isComponentDeclaration', 'component')
        self.solution = 'Remove extra spaces after "component" keyword.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / variable / rule_003.py View on Github external
from vsg.rules import single_space_after_rule


class rule_003(single_space_after_rule):
    '''
    Variable rule 003 checks there is a single space after the "variable" keyword.
    '''

    def __init__(self):
        single_space_after_rule.__init__(self, 'variable', '003', 'isVariable', 'variable')
        self.solution = 'Remove all but one space after the "variable" keyword.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / if_statement / rule_003.py View on Github external
def __init__(self):
        single_space_after_rule.__init__(self, 'if', '003', 'isIfKeyword', 'if')
        self.solution = 'Ensure only a single space exists between the "if" keyword and the (.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / variable / rule_003.py View on Github external
def __init__(self):
        single_space_after_rule.__init__(self, 'variable', '003', 'isVariable', 'variable')
        self.solution = 'Remove all but one space after the "variable" keyword.'
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / case / rule_002.py View on Github external
from vsg.rules import single_space_after_rule


class rule_002(single_space_after_rule):
    '''
    Case rule 002 checks for a single space after the "case" keyword.
    '''

    def __init__(self):
        single_space_after_rule.__init__(self, 'case', '002', 'isCaseKeyword', 'case')
        self.solution = 'Ensure a single space exists after the "case" keyword.'