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
Report an error, according to options.
dataset/ETHPy150Open kivy/plyer/plyer/tools/pep8checker/pep8.py/BaseReport.error