vhdl-style-guide/vsg/rules/library/rule_010.py

17 lines
488 B
Python

from vsg.rules import move_item_and_items_to_the_right_to_next_line_rule
from vsg.token import library_clause as token
class rule_010(move_item_and_items_to_the_right_to_next_line_rule):
'''
Moves library keyword and code to the right to it's own line.
'''
def __init__(self):
move_item_and_items_to_the_right_to_next_line_rule.__init__(self, 'library', '010', token.keyword)
self.regionBegin = token.keyword
self.regionEnd = token.semicolon