code: 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
docs: Report an error, according to options.