vhdl-style-guide/vsg/rules/external_variable_name/rule_101.py

28 lines
544 B
Python

# -*- coding: utf-8 -*-
from vsg.rules.whitespace_after_token import Rule
from vsg.token import external_variable_name as token
class rule_101(Rule):
"""
This rule checks for a single space after the variable keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
<< variable dut.fifo.wr_en : std_logic >>
**Fix**
.. code-block:: vhdl
<< variable dut.fifo.wr_en : std_logic >>
"""
def __init__(self):
Rule.__init__(self, [token.variable_keyword])