vhdl-style-guide/vsg/rules/generic_map/rule_006.py

18 lines
580 B
Python

from vsg import token
from vsg.rules import single_space_between_token_pairs
lTokens = []
lTokens.append([token.generic_map_aspect.map_keyword, token.generic_map_aspect.open_parenthesis])
lTokens.append([token.port_map_aspect.map_keyword, token.port_map_aspect.open_parenthesis])
class rule_006(single_space_between_token_pairs):
'''
Checks for a single space before the (
'''
def __init__(self):
single_space_between_token_pairs.__init__(self, 'generic_map', '006', lTokens)
self.solution = 'Ensure a single space exists between "map" and (.'