def check_files(self, paths=None):
if paths is None:<EOL><INDENT>paths = self.paths<EOL><DEDENT>report = self.options.report<EOL>runner = self.runner<EOL>report.start()<EOL>try:<EOL><INDENT>for path in paths:<EOL><INDENT>if os.path.isdir(path):<EOL><INDENT>self.input_dir(path)<EOL><DEDENT>elif not self.excluded(path):<EOL><INDENT>runner(path)<EOL><DEDENT><DEDENT><DEDENT>except KeyboardInterrupt:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>report.stop()<EOL>return report<EOL>
Run all checks on the paths.