Skip to content

Commit c5747f3

Browse files
committed
Fix trim-path-prefix functionality in HTML export
1 parent b0555b9 commit c5747f3

File tree

1 file changed

+2
-2
lines changed
  • tools/report-converter/codechecker_report_converter/report/output/html

1 file changed

+2
-2
lines changed

tools/report-converter/codechecker_report_converter/report/output/html/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def to_macro_expansions(
239239
html_reports.append({
240240
'fileId': report.file.id,
241241
'reportHash': report.report_hash,
242+
'path': report.file.path,
242243
'checker': {
243244
'name': report.checker_name,
244245
'url': self._get_doc_url(report) or ''
@@ -309,7 +310,7 @@ def create_index_html(self, output_dir: str):
309310

310311
table_reports = map(lambda data: {
311312
'link': os.path.basename(data['link']),
312-
'file-path': data['report']['fileId'],
313+
'file-path': data['report']['path'],
313314
'report-hash': data['report']['reportHash'],
314315
'checker-name': data['report']['checker']['name'],
315316
'checker-url': data['report']['checker']['url'],
@@ -436,7 +437,6 @@ def convert(
436437
if not reports:
437438
LOG.info('No report data in %s file.', file_path)
438439
return set()
439-
440440
html_filename = f"{os.path.basename(file_path)}.html"
441441
html_output_path = os.path.join(output_dir_path, html_filename)
442442
_, changed_files = html_builder.create(

0 commit comments

Comments
 (0)