def filter_file_exceptions_early(self, package, file_list):
    "\n        Filter files based on file pattern exceptions list.\n\n        Only filters files which have tools=all, intended for use after the\n        discovery plugins have been run (so that Statick doesn't run the tool\n        plugins against files which will be ignored anyway).\n        "
    exceptions = self.get_exceptions(package)
    to_remove = []
    for filename in file_list:
        removed = False
        for exception in exceptions['file']:
            if (exception['tools'] == 'all'):
                for pattern in exception['globs']:
                    fname = filename
                    prefix = '/home/travis/build/'
                    if ((pattern == '*/build/*') and fname.startswith(prefix)):
                        fname = fname[len(prefix):]
                    if fnmatch.fnmatch(fname, pattern):
                        to_remove.append(filename)
                        removed = True
                        break
                if removed:
                    break
    file_list = [filename for filename in file_list if (filename not in to_remove)]
    return file_list
Filter files based on file pattern exceptions list.

Only filters files which have tools=all, intended for use after the
discovery plugins have been run (so that Statick doesn't run the tool
plugins against files which will be ignored anyway).
def filter_file_exceptions_early(self, package, file_list):
    "\n        Filter files based on file pattern exceptions list.\n\n        Only filters files which have tools=all, intended for use after the\n        discovery plugins have been run (so that Statick doesn't run the tool\n        plugins against files which will be ignored anyway).\n        "
    exceptions = self.get_exceptions(package)
    to_remove = []
    for filename in file_list:
        removed = False
        for exception in exceptions['file']:
            if (exception['tools'] == 'all'):
                for pattern in exception['globs']:
                    fname = filename
                    prefix = '/home/travis/build/'
                    if ((pattern == '*/build/*') and fname.startswith(prefix)):
                        fname = fname[len(prefix):]
                    if fnmatch.fnmatch(fname, pattern):
                        to_remove.append(filename)
                        removed = True
                        break
                if removed:
                    break
    file_list = [filename for filename in file_list if (filename not in to_remove)]
    return file_list