vhdl-style-guide/vsg/rules/for_loop/rule_001.py

18 lines
395 B
Python

from vsg.rules import token_indent
from vsg import token
lTokens = []
lTokens.append(token.loop_statement.loop_label)
lTokens.append(token.iteration_scheme.for_keyword)
class rule_001(token_indent):
'''
For loop rule 001 checks for the proper indentation at the beginning of the line.
'''
def __init__(self):
token_indent.__init__(self, 'for_loop', '001', lTokens)