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

31 lines
614 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_indent
lTokens = []
lTokens.append(token.attribute_specification.attribute_keyword)
class rule_300(token_indent):
"""
This rule checks the indent of the **attribute** keyword.
**Violation**
.. code-block:: vhdl
signal sig1 : std_logic;
attribute coordinate of comp_1 : component is (0.0, 17.5);
**Fix**
.. code-block:: vhdl
signal sig1 : std_logic;
attribute coordinate of comp_1 : component is (0.0, 17.5);
"""
def __init__(self):
super().__init__(lTokens)