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):
single_space_after_rule.__init__(self, 'entity', '002', 'isEntityDeclaration', 'entity')
self.solution = 'Remove extra spaces after entity keyword.'
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.'
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.'
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.'
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.'
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.'
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.'
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 (.'
def __init__(self):
single_space_after_rule.__init__(self, 'variable', '003', 'isVariable', 'variable')
self.solution = 'Remove all but one space after the "variable" keyword.'
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.'