Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def report_error(self, line_number, offset, text, check):
"""
Store the error
"""
self.file_errors += 1
error_code = text[0:4]
if not pep8.ignore_code(error_code):
self.error_list.append([line_number, offset, error_code, text])
def report_error(self, line_number, offset, text, check):
"""
Store the error
"""
self.file_errors += 1
error_code = text[0:4]
if not pep8.ignore_code(error_code):
self.error_list.append([line_number, offset, error_code, text])
def report_error(self, line_number, offset, text, check):
"""
Store the error
"""
self.file_errors += 1
error_code = text[0:4]
if not pep8.ignore_code(error_code):
self.error_list.append([line_number, offset, error_code, text])
def report_error(self, line_number, offset, text, check):
code = text[:4]
msg = text[5:]
if pep8.ignore_code(code):
return
if code.startswith('E'):
messages.append(Pep8Error(filename, Dict2Obj(lineno=line_number, col_offset=offset), code, msg))
else:
messages.append(Pep8Warning(filename, Dict2Obj(lineno=line_number, col_offset=offset), code, msg))
pep8.Checker.report_error = report_error