vhdl-style-guide/vsg/rules/context/rule_021.py

15 lines
522 B
Python

from vsg.rules import insert_token_right_of_token_if_it_does_not_exist_before_token
from vsg.token import context_declaration as token
class rule_021(insert_token_right_of_token_if_it_does_not_exist_before_token):
'''
Checks for indent on the end keyword.
'''
def __init__(self):
insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, 'context', '021', token.end_context_keyword('context'), token.end_keyword, token.semicolon)
self.solution = '*context* keyword'