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

19 lines
493 B
Python

from vsg import rule
class rule_016(rule.rule):
'''
Process rule 016 checks a process has a label.
'''
def __init__(self):
rule.rule.__init__(self, 'process', '016')
self.solution = 'Add a label for the process.'
self.phase = 1
self.fixable = False # The user must add the label
def _analyze(self, oFile, oLine, iLineNumber):
if oLine.isProcessKeyword and not oLine.isProcessLabel:
self.add_violation(iLineNumber)