We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2da89a3 + 22ff008 commit 0bbf351Copy full SHA for 0bbf351
tools/report-converter/codechecker_report_converter/report/output/gerrit.py
@@ -85,8 +85,12 @@ def __convert_reports(reports: List[Report],
85
report_count += 1
86
87
# file_name can be without a path in the report.
88
- rel_file_path = os.path.relpath(file_name, repo_dir) \
89
- if repo_dir and os.path.dirname(file_name) != "" else file_name
+ if repo_dir \
+ and os.path.dirname(file_name) != "" \
90
+ and os.path.isabs(file_name):
91
+ rel_file_path = os.path.relpath(file_name, repo_dir)
92
+ else:
93
+ rel_file_path = file_name
94
95
checked_file = rel_file_path \
96
+ ':' + str(report.line) + ":" + str(report.column)
0 commit comments