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

31 lines
542 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules.whitespace_after_token import Rule
lTokens = []
lTokens.append(token.variable_declaration.shared_keyword)
class rule_101(Rule):
"""
This rule checks for a single space after the shared keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
shared variable size : integer;
**Fix**
.. code-block:: vhdl
shared variable size : integer;
"""
def __init__(self):
super().__init__(lTokens)