(self, results: JsonR, files: Iterable[str])
return [
            r
            for r in results
            if PurePath(r["file"]).relative_to(REMOTE_BASE_PATH) in to_keep
        ]
Filters gosec results to only files that we care about
Filters gosec results to only files that we care about
Filters gosec results to only files that we care about
def filter_result_paths(self, results: JsonR, files: Iterable[str]) -> JsonR:
        """Filters gosec results to only files that we care about"""
        to_keep = {PurePath(f).relative_to(self.base_path) for f in files}
        return [
            r
            for r in results
            if PurePath(r["file"]).relative_to(REMOTE_BASE_PATH) in to_keep
        ]
def filter_result_paths ( self , results : JsonR , files : Iterable [ str ] ) -> JsonR : to_keep = { PurePath ( f ) . relative_to ( self . base_path ) for f in files } return [ r for r in results if PurePath ( r [ "file" ] ) . relative_to ( REMOTE_BASE_PATH ) in to_keep ]