autolint/autolint.py
def __remove_ignored_files(self, all_files):
        """Remove the files matching a pattern at the ignore file

        :param all_files, list of the files to be filtered

        :return a set instance containing a subset of all_files, where all the
                files matched by an ignore pattern were removed.
        """

        if self.ignore_file is None:
            return all_files

        with open(self.ignore_file, 'r') as f:
            spec = pathspec.PathSpec.from_lines('gitignore', f)

        return_files = set(all_files)
        for p in spec.patterns:
            if p.include is not None:
                result_files = p.match(all_files)
                if p.include:
                    return_files.difference_update(result_files)
                else:
                    return_files.update(result_files)
        return return_files
Remove the files matching a pattern at the ignore file

        :param all_files, list of the files to be filtered

        :return a set instance containing a subset of all_files, where all the
                files matched by an ignore pattern were removed.
        
Remove the files matching a pattern at the ignore file
:param all_files, list of the files to be filtered

:return a set instance containing a subset of all_files, where all the
files matched by an ignore pattern were removed.
Remove the files matching a pattern at the ignore file : param all_files list of the files to be filtered : return a set instance containing a subset of all_files where all the files matched by an ignore pattern were removed .
def __remove_ignored_files(self, all_files):
        if self.ignore_file is None:
            return all_files
        with open(self.ignore_file, 'r') as f:
            spec = pathspec.PathSpec.from_lines('gitignore', f)
        return_files = set(all_files)
        for p in spec.patterns:
            if p.include is not None:
                result_files = p.match(all_files)
                if p.include:
                    return_files.difference_update(result_files)
                else:
                    return_files.update(result_files)
        return return_files
def __remove_ignored_files ( self , all_files ) : if self . ignore_file is None : return all_files with open ( self . ignore_file , 'r' ) as f : spec = pathspec . PathSpec . from_lines ( 'gitignore' , f ) return_files = set ( all_files ) for p in spec . patterns : if p . include is not None : result_files = p . match ( all_files ) if p . include : return_files . difference_update ( result_files ) else : return_files . update ( result_files ) return return_files
Remove the files matching a pattern at the ignore file
:param all_files, list of the files to be filtered
Remove the files matching a pattern at the ignore file : param all_files list of the files to be filtered
"""Remove the files matching a pattern at the ignore file

        :param all_files, list of the files to be filtered

        :return a set instance containing a subset of all_files, where all the
                files matched by an ignore pattern were removed.
        """
self
all_files