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)
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