Skip to content

Commit 5835293

Browse files
authored
fix: repo-audit --full flag for user-requested sweeps
1 parent 5788cc0 commit 5835293

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

skills/intelligence-engine/scripts/repo-audit

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,16 @@ def audit():
5959
return findings
6060

6161
if __name__ == "__main__":
62+
full = "--full" in sys.argv
63+
args = [a for a in sys.argv[1:] if a != "--full"]
64+
REPO = Path(args[0]) if args else Path.cwd()
6265
f = audit()
66+
cap = None if full else 12
6367
if f:
64-
for line in f[:12]:
68+
for line in f[:cap] if cap else f:
6569
print(f" ! {line}")
66-
if len(f) > 12:
67-
print(f" … +{len(f)-12} more")
70+
if cap and len(f) > cap:
71+
print(f" … +{len(f)-cap} more (use --full for all)")
6872
sys.exit(1)
6973
else:
7074
p = REPO / "pyproject.toml"

0 commit comments

Comments
 (0)