Private
Public Access
0
0

chore(scripts): organize_reports emits subdirs-skipped list

Self-documents that subdirectories (existing week folders + category
folders like code_path_audit/ and license_cve_audit/) are skipped
non-recursively. Surfaces in both human-readable and --json output.
This commit is contained in:
2026-06-26 23:06:42 -04:00
parent 7a96d0264d
commit 423f260aba
+6
View File
@@ -82,6 +82,7 @@ def main() -> int:
print(f"error: {reports} is not a directory", file=sys.stderr)
return 1
subdirs_skipped = [e.name for e in sorted(reports.iterdir(), key=lambda e: e.name) if e.is_dir()]
current_monday = _week_monday(date.today())
moves: list[dict] = []
skipped_current_week: list[str] = []
@@ -115,6 +116,7 @@ def main() -> int:
"skipped_current_week": skipped_current_week,
"skipped_no_date": skipped_no_date,
"skipped_already_in_place": skipped_already_in_place,
"subdirs_skipped": subdirs_skipped,
}, indent=2))
return 0
@@ -141,6 +143,10 @@ def main() -> int:
print(f"\nSkipped (no parseable date): {len(skipped_no_date)}")
for n in skipped_no_date:
print(f" - {n}")
if subdirs_skipped:
print(f"\nSubdirectories skipped (non-recursive; left untouched): {len(subdirs_skipped)}")
for n in subdirs_skipped:
print(f" - {n}")
if args.apply and moves:
for mv in moves: