diff --git a/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py b/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py
index 042695570c..0ae06f0c0a 100644
--- a/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py
+++ b/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py
@@ -766,9 +766,8 @@ def test_html_checker_url(self):
content = f.read()
self.assertTrue(re.search(
- 'UNKNOWN CHECKER NAME', content))
+ '"checker-url": "https://.*alpha-clone-clonechecker', content))
+ self.assertTrue(re.search('"checker-url": ""', content))
self.assertTrue(re.search('UNKNOWN CHECKER NAME', content))
# Test whether documentation urls are set properly for known
@@ -785,4 +784,4 @@ def test_html_checker_url(self):
with open(report_html, 'r',
encoding="utf-8", errors="ignore") as f:
content = f.read()
- self.assertTrue(re.search('"url": null', content))
+ self.assertTrue(re.search('"url": ""', content))
diff --git a/tools/report-converter/codechecker_report_converter/report/output/html/html.py b/tools/report-converter/codechecker_report_converter/report/output/html/html.py
index fd4ef21342..59e7efe212 100644
--- a/tools/report-converter/codechecker_report_converter/report/output/html/html.py
+++ b/tools/report-converter/codechecker_report_converter/report/output/html/html.py
@@ -240,7 +240,7 @@ def to_macro_expansions(
'reportHash': report.report_hash,
'checker': {
'name': report.checker_name,
- 'url': self._get_doc_url(report)
+ 'url': self._get_doc_url(report) or ''
},
'analyzerName': report.analyzer_name,
'line': report.line,
@@ -302,82 +302,22 @@ def create_index_html(self, output_dir: str):
for report in reports:
html_report_links.append({'link': html_file, 'report': report})
- html_report_links.sort(
- key=lambda data: self.files[data['report']['fileId']]['filePath'])
-
- with io.StringIO() as table_reports:
- # Create table header.
- table_reports.write('''
-
- ''')
-
- # Create table lines.
- for i, data in enumerate(html_report_links):
- html_file = os.path.basename(data['link'])
- report = data['report']
-
- severity = report['severity'].lower() \
- if 'severity' in report \
- and report['severity'] is not None \
- else ''
-
- review_status = report['reviewStatus'] \
- if 'reviewStatus' in report and \
- report['reviewStatus'] is not None \
- else ''
-
- events = report['events']
- if events:
- line = events[-1]['line']
- message = events[-1]['message']
- bug_path_length = len(events)
- else:
- line = report['line']
- message = report['message']
- bug_path_length = 1
-
- rs = review_status.lower().replace(' ', '-')
- file_path = self.files[report['fileId']]['filePath']
-
- checker = report['checker']
- doc_url = checker.get('url')
- if doc_url:
- checker_name_col_content = f'{checker["name"]}'
- else:
- checker_name_col_content = checker["name"]
-
- table_reports.write(f'''
-
- File
- Severity
- Checker name
- Message
- Bug path length
- Review status
-
| + | File | +Severity | +Checker name | +Message | +Bug path length | +Review status | +
|---|