fix(tools): stop silently truncating tracker titles in reachaudit output
The whole-package section hard-truncated tracker hit text to 56 chars with no ellipsis, so long issue titles cut off mid-word (e.g. "...neither re"). Switch to the same indented-list format already used for the in-package section instead of a fixed-width single line.
This commit is contained in:
1 parent
9bd235eef0
commit
1c62a514a1
1 file changed
+3
-2
@@ -227,8 +227,9 @@ def main() -> int:
|
||||
continue
|
||||
lines.append(f"== {cat} ({len(group)}) ==")
|
||||
for r in group:
|
||||
tr = "; ".join(r["tracker_hits"]) or "NONE"
|
||||
lines.append(f" {r['loc']:>6} LOC {r['package']:<48} {tr[:56]}")
|
||||
lines.append(f" {r['loc']:>6} LOC {r['package']}")
|
||||
for hit in r["tracker_hits"] or ["NONE"]:
|
||||
lines.append(f" {hit}")
|
||||
lines.append("")
|
||||
for cat in ("in-package-untracked", "in-package-dynamic", "in-package-tracked"):
|
||||
group = [r for r in in_pkg_rows if r["category"] == cat]
|
||||
|
||||
Reference in new issue
Block a user