def _fix_violations(self, oFile): for iLineNumber in self.violations[::-1]: utilities.split_line_after_word(oFile, iLineNumber, '(') oLine = oFile.lines[iLineNumber + 1] oLine.isTypeKeyword = False oLine.isTypeEnumeratedKeyword = False oLine.indentLevel += 1
def _fix_violations(self, oFile): for iLineNumber in self.violations[::-1]: utilities.split_line_after_word(oFile, iLineNumber, '=>') oFile.lines[iLineNumber + 1].isCaseWhenEnd = False oFile.lines[iLineNumber + 1].insideCaseWhen = False oFile.lines[iLineNumber + 1].indentLevel += 1 utilities.reclassify_line(oFile, iLineNumber)
def _fix_violations(self, oFile): for iLineNumber in self.violations[::-1]: utilities.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 utilities.reclassify_line(oFile, iLineNumber)
def _fix_violations(self, oFile): for iLineNumber in self.violations[::-1]: for i in range(0, oFile.lines[iLineNumber].line.count(';')): utilities.split_line_after_word(oFile, iLineNumber + i, ';')
def _fix_violations(self, oFile): for iLineNumber in self.violations[::-1]: utilities.split_line_after_word(oFile, iLineNumber, '(') oFile.lines[iLineNumber].isInstantiationPortAssignment = False oFile.lines[iLineNumber + 1].isInstantiationPortKeyword = False oFile.lines[iLineNumber + 1].indentLevel += 1