Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Fix HTML generation for CodeChecker cmd diff command #3600

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

csordasmarton
Copy link
Contributor

If the diff contained reports from multiple source files (e.g.: a.cpp + b.cpp)
the CodeChecker cmd diff command in HTML format generated HTML files for
each source file but inserted the same list of reports in all of the HTML files.

This can be easily reproduced by creating two source files and insert a report in both
of the source file. Create a compilation database with 2 translation units, analyze
this project and use the diff command to generate HTML output files to a run which is
empty.

This patch will solve this problem and will insert only those reports to a generated
HTML files which are really related to that file.

@csordasmarton csordasmarton added CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands bugfix 🔨 test ☑️ Adding or refactoring tests labels Feb 17, 2022
@csordasmarton csordasmarton added this to the release 6.19.0 milestone Feb 17, 2022
If the diff contained reports from multiple source files (e.g.: a.cpp + b.cpp)
the `CodeChecker cmd diff` command in HTML format generated HTML files for
each source file but inserted the same list of reports in all of the HTML files.

This can be easily reproduced by creating two source files and insert a report in both
of the source file. Create a compilation database with 2 translation units, analyze
this project and use the diff command to generate HTML output files to a run which is
empty.

This patch will solve this problem and will insert only those reports to a generated
HTML files which are really related to that file.
@csordasmarton csordasmarton merged commit 59cf422 into Ericsson:master Feb 24, 2022
@csordasmarton csordasmarton deleted the fix_diff_html_output branch April 7, 2022 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix 🔨 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands test ☑️ Adding or refactoring tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants