Beispiel #1
0
 def _analyze(self, oFile, oLine, iLineNumber):
     if oLine.isEntityDeclaration:
         self.sEntityName = utils.extract_entity_identifier(oLine)[0]
     if oLine.isEndEntityDeclaration and re.match('^\s*end\s+entity', oLine.line, re.IGNORECASE):
         if not re.match('^\s*end\s+entity\s+\w+', oLine.line, re.IGNORECASE):
             self.add_violation(iLineNumber)
             self.dFix['violations'][iLineNumber] = self.sEntityName
 def _analyze(self, oFile, oLine, iLineNumber):
     if oLine.isEntityDeclaration:
         self.sEntityName = utils.extract_entity_identifier(oLine)[0]
     if oLine.isEndEntityDeclaration and re.match('^\s*end\s+entity', oLine.line, re.IGNORECASE):
         if not re.match('^\s*end\s+entity\s+\w+', oLine.line, re.IGNORECASE):
             dViolation = utils.create_violation_dict(iLineNumber)
             dViolation['entity'] = self.sEntityName
             self.add_violation(dViolation)
Beispiel #3
0
 def _extract(self, oLine):
     return utils.extract_entity_identifier(oLine)