2525VIOLATION_LENGTH_COLUMN = column_builder .build (name = 'Violation Length' )
2626VIOLATION_COLUMN = column_builder .build (name = 'Violation' )
2727SCAN_ID_COLUMN = column_builder .build (name = 'Scan ID' )
28- REPORT_URL_COLUMN = column_builder .build (name = 'Report URL' )
2928
3029COLUMN_WIDTHS_CONFIG : ColumnWidthsConfig = {
3130 SECRET_SCAN_TYPE : {
@@ -59,13 +58,12 @@ def _print_results(self, local_scan_results: List['LocalScanResult']) -> None:
5958
6059 for local_scan_result in local_scan_results :
6160 for document_detections in local_scan_result .document_detections :
62- report_url = local_scan_result .report_url if local_scan_result .report_url else 'N/A'
6361 for detection in document_detections .detections :
64- table .set (REPORT_URL_COLUMN , report_url )
6562 table .set (SCAN_ID_COLUMN , local_scan_result .scan_id )
6663 self ._enrich_table_with_values (table , detection , document_detections .document )
6764
6865 self ._print_table (table )
66+ self ._print_report_urls (local_scan_results )
6967
7068 def _get_table (self ) -> Table :
7169 table = Table ()
@@ -85,9 +83,6 @@ def _get_table(self) -> Table:
8583 table .add (VIOLATION_LENGTH_COLUMN )
8684 table .add (VIOLATION_COLUMN )
8785
88- if self .context .obj .get ('report' ):
89- table .add (REPORT_URL_COLUMN )
90-
9186 return table
9287
9388 def _enrich_table_with_values (self , table : Table , detection : Detection , document : Document ) -> None :
0 commit comments