vhdl-style-guide/vsg/rules/component/rule_011.py

14 lines
471 B
Python

from vsg.rules import single_space_between_tokens
from vsg.token import component_declaration as token
class rule_011(single_space_between_tokens):
'''
Component rule 011 checks for a single space after the "end" keyword
'''
def __init__(self):
single_space_between_tokens.__init__(self, 'component', '011', token.end_keyword, token.end_component_keyword)
self.solution = 'Reduce spaces between *end* keyword and *component* keyword.'