Skip to content

Commit 536c081

Browse files
committed
fix(report): shorten paths to save horizontal space
1 parent f95d367 commit 536c081

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

codesectools/sasts/all/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from codesectools.sasts import SASTS_ALL
1616
from codesectools.sasts.all.sast import AllSAST
1717
from codesectools.sasts.core.sast import PrebuiltBuildlessSAST, PrebuiltSAST
18-
from codesectools.utils import group_successive
18+
from codesectools.utils import group_successive, shorten_path
1919

2020

2121
def build_cli() -> typer.Typer:
@@ -317,7 +317,8 @@ def report(
317317
defect_page.print(defect_stats_table)
318318

319319
defect_report_redirect = Text(
320-
defect_data["source_path"], style=Style(link=defect_report_name)
320+
shorten_path(defect_data["source_path"], 60),
321+
style=Style(link=defect_report_name),
321322
)
322323
main_table.add_row(defect_report_redirect)
323324

0 commit comments

Comments
 (0)