@check_initialized<EOL><INDENT>def get_files_to_check(self):<DEDENT>
def _get_matches(conf):<EOL><INDENT>"""<STR_LIT>"""<EOL>match_func = re(conf.match + '<STR_LIT:$>').match<EOL>match_dir_func = re(conf.match_dir + '<STR_LIT:$>').match<EOL>return match_func, match_dir_func<EOL><DEDENT>def _get_ignore_decorators(conf):<EOL><INDENT>"""<STR_LIT>"""<EOL>return (re(conf.ignore_decorators) if conf.ignore_decorators<EOL>else None)<EOL><DEDENT>for name in self._arguments:<EOL><INDENT>if os.path.isdir(name):<EOL><INDENT>for root, dirs, filenames in os.walk(name):<EOL><INDENT>config = self._get_config(os.path.abspath(root))<EOL>match, match_dir = _get_matches(config)<EOL>ignore_decorators = _get_ignore_decorators(config)<EOL>dirs[:] = [d for d in dirs if match_dir(d)]<EOL>for filename in filenames:<EOL><INDENT>if match(filename):<EOL><INDENT>full_path = os.path.join(root, filename)<EOL>yield (full_path, list(config.checked_codes),<EOL>ignore_decorators)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>config = self._get_config(os.path.abspath(name))<EOL>match, _ = _get_matches(config)<EOL>ignore_decorators = _get_ignore_decorators(config)<EOL>if match(name):<EOL><INDENT>yield (name, list(config.checked_codes), ignore_decorators)<EOL><DEDENT><DEDENT><DEDENT>
Generate files and error codes to check on each one.

        Walk dir trees under `self._arguments` and yield file names
        that `match` under each directory that `match_dir`.
        The method locates the configuration for each file name and yields a
        tuple of (filename, [error_codes]).

        With every discovery of a new configuration file `IllegalConfiguration`
        might be raised.