def report(self, linenumber, filename, severity, message, rulename, char):
if self._print_filename is not None:<EOL><INDENT>print("<STR_LIT>" + self._print_filename)<EOL>self._print_filename = None<EOL><DEDENT>if severity in (WARNING, ERROR):<EOL><INDENT>self.counts[severity] += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>self.counts["<STR_LIT>"] += <NUM_LIT:1><EOL><DEDENT>print(self.args.format.format(linenumber=linenumber, filename=filename,<EOL>severity=severity, message=message.encode('<STR_LIT:utf-8>'),<EOL>rulename=rulename, char=char))<EOL>
Report a rule violation