@@ -63,6 +63,7 @@ class Checker(TypedDict):
63
63
64
64
class HTMLReport (TypedDict ):
65
65
fileId : str
66
+ path : str
66
67
reportHash : Optional [str ]
67
68
checker : Checker
68
69
analyzerName : Optional [str ]
@@ -239,6 +240,7 @@ def to_macro_expansions(
239
240
html_reports .append ({
240
241
'fileId' : report .file .id ,
241
242
'reportHash' : report .report_hash ,
243
+ 'path' : report .file .path ,
242
244
'checker' : {
243
245
'name' : report .checker_name ,
244
246
'url' : self ._get_doc_url (report ) or ''
@@ -309,7 +311,7 @@ def create_index_html(self, output_dir: str):
309
311
310
312
table_reports = map (lambda data : {
311
313
'link' : os .path .basename (data ['link' ]),
312
- 'file-path' : data ['report' ]['fileId ' ],
314
+ 'file-path' : data ['report' ]['path ' ],
313
315
'report-hash' : data ['report' ]['reportHash' ],
314
316
'checker-name' : data ['report' ]['checker' ]['name' ],
315
317
'checker-url' : data ['report' ]['checker' ]['url' ],
@@ -436,7 +438,6 @@ def convert(
436
438
if not reports :
437
439
LOG .info ('No report data in %s file.' , file_path )
438
440
return set ()
439
-
440
441
html_filename = f"{ os .path .basename (file_path )} .html"
441
442
html_output_path = os .path .join (output_dir_path , html_filename )
442
443
_ , changed_files = html_builder .create (
0 commit comments