vhdl-style-guide/vsg/rules/constant/rule_600.py

33 lines
602 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_suffix
lTokens = []
lTokens.append(token.constant_declaration.identifier)
class rule_600(token_suffix):
"""
This rule checks for valid suffixes on constant identifiers.
The default constant suffix is *_c*.
|configuring_prefix_and_suffix_rules_link|
**Violation**
.. code-block:: vhdl
constant my_const : integer;
**Fix**
.. code-block:: vhdl
constant my_const_c : integer;
"""
def __init__(self):
super().__init__(lTokens)
self.suffixes = ["_c"]