vhdl-style-guide/vsg/rules/variable/rule_005.py

32 lines
589 B
Python

from vsg import token
from vsg.rules.whitespace_after_token import Rule
lTokens = []
lTokens.append(token.variable_declaration.colon)
class rule_005(Rule):
'''
This rule checks there is a single space after the colon.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
variable count :integer;
variable counter : integer;
**Fix**
.. code-block:: vhdl
variable count : integer;
variable counter : integer;
'''
def __init__(self):
Rule.__init__(self, 'variable', '005', lTokens)