File: sbom_recorder.py
Labels: bug, performance, priority:low
pythonfor root, _, files in os.walk(pkg_path):
if scanned_files > 5:
break
for file in files:
...
scanned_files += 1
The break only evaluates between directories. A package with one flat directory of hundreds of files gets all of them scanned before the cap has a chance to fire, contradicting the "Max 5 core files" comment.
Fix: move the if scanned_files > 5: break check inside the inner for file in files loop too.
File: sbom_recorder.py
Labels: bug, performance, priority:low
pythonfor root, _, files in os.walk(pkg_path):
if scanned_files > 5:
break
for file in files:
...
scanned_files += 1
The break only evaluates between directories. A package with one flat directory of hundreds of files gets all of them scanned before the cap has a chance to fire, contradicting the "Max 5 core files" comment.
Fix: move the if scanned_files > 5: break check inside the inner for file in files loop too.