示例#1
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations[::-1]:
         iLineNumber = utils.get_violation_line_number(dViolation)
         utils.split_line_after_word(oFile, iLineNumber, '(')
         oFile.lines[iLineNumber].isInstantiationPortAssignment = False
         oFile.lines[iLineNumber + 1].isInstantiationPortKeyword = False
         oFile.lines[iLineNumber + 1].indentLevel += 1
示例#2
0
 def _fix_violations(self, oFile):
     for iLineNumber in self.violations[::-1]:
         utils.split_line_after_word(oFile, iLineNumber, '=>')
         oFile.lines[iLineNumber + 1].isCaseWhenEnd = False
         oFile.lines[iLineNumber + 1].insideCaseWhen = False
         oFile.lines[iLineNumber + 1].indentLevel += 1
         utils.reclassify_line(oFile, iLineNumber)
示例#3
0
 def _fix_violations(self, oFile):
     for iLineNumber in self.violations[::-1]:
         utils.split_line_after_word(oFile, iLineNumber, '(')
         oLine = oFile.lines[iLineNumber + 1]
         oLine.isTypeKeyword = False
         oLine.isTypeEnumeratedKeyword = False
         oLine.indentLevel += 1
示例#4
0
 def _fix_violations(self, oFile):
     for iLineNumber in self.violations[::-1]:
         utils.split_line_after_word(oFile, iLineNumber, 'else')
         oFile.lines[iLineNumber + 1].isElseKeyword = False
         oFile.lines[iLineNumber].isIfKeyword = False
         oFile.lines[iLineNumber].isElseIfKeyword = False
         oFile.lines[iLineNumber].isThenKeyword = False
         oFile.lines[iLineNumber + 1].indentLevel += 1
         oFile.lines[iLineNumber].isLastEndIf = False
         utils.reclassify_line(oFile, iLineNumber)
         oFile.lines[iLineNumber + 1].isFirstIf = False
示例#5
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations[::-1]:
         iLineNumber = utils.get_violation_line_number(dViolation)
         for i in range(0, oFile.lines[iLineNumber].line.count(';')):
             utils.split_line_after_word(oFile, iLineNumber + i, ';')