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

CodeChecker parse command should provide analysis status per source file #4271

Open
dkrupp opened this issue Jun 24, 2024 · 0 comments
Open
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands new feature 👍 New feature request

Comments

@dkrupp
Copy link
Member

dkrupp commented Jun 24, 2024

In the VSCode plugin, in the “Reports in current file” view it is not possible to know if the analysis of a file was correct, failed and whether it is up to date. When there are 0 findings for a source file, we don’t know whether there were really 0 findings, or the vscode plugin is not showing any reports because the analysis was faulty. See Ericsson/CodecheckerVSCodePlugin#149

It should be possible (using the CodeChecker parse command) to query the analysis status of a source file. e.g.:

CodeChecker parse –file source.c –analysis-status

Expected output:

clangsa : successful analysis
clang-tidy: successful analysis
cppcheck: failed analysis
fbinfer: outdated analysis

In case analysis was never run.

No analysis result found for source.c

Then the VSCode plugin would be able to visualize the analysis status.

In the current CodeChecker version there is one plist file per analysis invocation. The name of the file contains the name of the source file, the hash of the compilation action and the analyzer name (source_file_analyzer_compilation_hash.plist).

An improvement possibility is that CodeChecker stores the following additional info in the PLIST file

Analyzer name
Analysis result: successful, failed
Source file content hash (to be able to indicate if the result is outdated)
Analysis execution time
@dkrupp dkrupp added the new feature 👍 New feature request label Jun 24, 2024
@vodorok vodorok modified the milestone: release 6.25.0 Jun 24, 2024
@vodorok vodorok added CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands new feature 👍 New feature request
Projects
None yet
Development

No branches or pull requests

2 participants