parameters: (self, line_number, offset, text, check)
return_statement: return code
docstring: Report an error, according to options.
docstring_summary: Report an error, according to options.
docstring_tokens: Report an error according to options .
function: def error(self, line_number, offset, text, check):
          """Report an error, according to options."""
          code = text[:4]
          if self._ignore_code(code):
              return
          if code in self.counters:
              self.counters[code] += 1
          else:
              self.counters[code] = 1
              self.messages[code] = text[5:]
          # Don't care about expected errors or warnings
          if code in self.expected:
              return
          if self.print_filename and not self.file_errors:
              print(self.filename)
          self.file_errors += 1
          self.total_errors += 1
          return code
function_tokens: def error ( self , line_number , offset , text , check ) : code = text [ : 4 ] if self . _ignore_code ( code ) : return if code in self . counters : self . counters [ code ] += 1 else : self . counters [ code ] = 1 self . messages [ code ] = text [ 5 : ] # Don't care about expected errors or warnings if code in self . expected : return if self . print_filename and not self . file_errors : print ( self . filename ) self . file_errors += 1 self . total_errors += 1 return code