vhdl-style-guide/vsg/rules/entity/rule_300.py

33 lines
479 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_indent as Rule
lTokens = []
lTokens.append(token.entity_declaration.begin_keyword)
class rule_300(Rule):
"""
This rule checks the indent of the **begin** keyword.
**Violation**
.. code-block:: vhdl
entity FIFO is
begin
**Fix**
.. code-block:: vhdl
entity FIFO is
begin
"""
def __init__(self):
super().__init__(lTokens)