Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def find(self, derivation, vulns):
"""Compiles all matching rules into a `Filtered` object."""
f = Filtered(derivation, vulns)
for cand in self.candidates(derivation.pname, derivation.version):
if cand.covers(derivation, vulns):
f.add(cand)
return f