Skip to content

Commit

Permalink
[cmd] Store command should print deduplicated statistics
Browse files Browse the repository at this point in the history
Previously the store command printed the raw statistics of the report
folder, but none of the other commands or result of actions (parse
command or the result of the store) reflected these numbers.
This patch fixes that, and now the store commands prints the same
summary as the parse command.
  • Loading branch information
vodorok committed Oct 19, 2023
1 parent 8def7f9 commit ef5d486
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/client/codechecker_client/cmd/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,10 @@ def assemble_zip(inputs,
changed_files.update(report.changed_files)
continue
# Need to calculate unique reoirt count to determine report limit
unique_reports.add(get_report_path_hash(report))

stats.add_report(report)
report_path_hash = get_report_path_hash(report)
if report_path_hash not in unique_reports:
unique_reports.add(report_path_hash)
stats.add_report(report)

file_paths.update(report.original_files)
file_report_positions[report.file.original_path].add(report.line)
Expand Down

0 comments on commit ef5d486

Please sign in to comment.