code: def errorRecorder(self, lineNumber, offset, text, check):
          
          code = text.split(" ")[0]
          lineOffset = self.report.line_offset
  
          self.warnings.append((lineOffset + lineNumber,
                                offset + 1, code, text))
docs: A function to override report_error in pycodestyle.
          And record output warnings.
  
          @param lineNumber: line number
          @param offset: column offset
          @param text: warning message
          @param check: check object in pycodestyle