Release 5.9 brings new improvements and changes for an easier, more secure use to CodeChecker.
Incompatible command line changes!
Previously, to store analysis results, you needed to provide a database connection. This has been changed for both a more easier and secure usage model, which no longer requires having to know and input database credentials. A CodeChecker server is now needed by CodeChecker store to connect to and store runs in the database it is connected to. Because of this the command-line invocation has changed!, as follows:
- A
CodeChecker serverneeds to be started before analysis results can be stored to the database, i.e. before executingstoreorcheckcommands. - Database-related arguments (
--dbaddress,--dbport,--dbusername,--dbname,--sqlite, and--postgresql) have been removed fromcheckandstore. - Instead,
--hostand--portis to be used to specify which CodeChecker server accepts and stores the analysis results. - Servers which have authentication enabled require a valid session before allowing storage of analysis results. Use
CodeChecker cmd loginbefore callingstoreorcheckif your server is password protected.- If the server is configured for a short time-out period for valid sessions and building your project and analyzing it takes too long, the session on the server can time out before the storage of results can commence. Please use
log,analyzeandstoreseparately, or configure your server for a longer timeout.
- If the server is configured for a short time-out period for valid sessions and building your project and analyzing it takes too long, the session on the server can time out before the storage of results can commence. Please use
New features
CodeChecker cmd diffallows diffing a run on a server and a local report folder containingplistfiles.- E.g.
CodeChecker cmd diff --basename release --newname ~/my_analyze_output --newwill show reports introduced in your local folder without having tostoreyour results to a CodeChecker server.
- E.g.
Improvements
CodeChecker cmd diffshows the source code line where the bug was found in its output.
Fixes
- Fixed a rare crash that resulted because of special characters in the source files badly decoded by the client.
- Fixed
CodeChecker storeunable to import any useful information from a report folder that did not contain metadata files alongside theplists.
Miscellaneous
CodeChecker debughas been removed.