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

35 lines
806 B
Python

from vsg.rules import token_suffix
from vsg import token
lTokens = []
lTokens.append(token.process_statement.process_label)
lTokens.append(token.process_statement.end_process_label)
class rule_600(token_suffix):
'''
This rule checks for valid suffixes on process labels.
The default suffix is *\_proc*.
Refer to the section `Configuring Prefix and Suffix Rules <configuring.html#configuring-prefix-and-suffix-rules>`_ for information on changing the allowed suffixes.
**Violation**
.. code-block:: vhdl
main: process () is
**Fix**
.. code-block:: vhdl
main_proc: process () is
'''
def __init__(self):
token_suffix.__init__(self, 'process', '600', lTokens)
self.suffixes = ['_proc']
self.solution = 'Process labels'