v6.19.0
·
1996 commits
to master
since this release
❗❗❗ Backward incompatible changes ❗❗❗
- Fix JSON format of CodeChecker version subcommand (#3558)
The output of theCodeChecker version -o jsoncommand wasn't a valid JSON format. From this release CodeChecker will provide a valid JSON output for this command.
For more information see the documentation. - Not allowing disabling modeling checkers in ClangSA (#3323)
When aClang Static Analyzerchecker is disabled in CodeChecker, clang is invoked with theanalyzer-disable-checkerflag. This allows the user disabling core modeling checkers such asunix.DynamicMemoryModeling. This causes malfunctioning of depending checkers.
From this releasemodelinganddebugcheckers (listed withclang -cc1 -analyzer-checker-help-developer) will not be listed and cannot be disabled through CodeChecker with the--enableand--disableflags.
They can be enabled/disabled through the Clang Static Analyzer specific--saargsflag only. - Change minimum supported
nodeversion (#3581, #3586)
The minimum supported node version to build CodeChecker after this release is>=14.17.0.
⭐ New features
- Add
print-stepsoption toCodeChecker cmd diffcommand (#3555)
Without bug steps it is hard to understood the problem by a programmer. With this commit we will introduce a new option for theCodeChecker cmd diffcommand which can be used to print bug steps similar what we are doing at theCodeChecker parsecommand. This patch also solve the problem to print bug steps in HTML files for reports which comes from a CodeChecker server. - Support yaml CodeChecker configuration files (#3602)
Multiple subcommands have a--configoption which allow the configuration from an explicit configuration file. The parameters in the config file will be emplaced as command line arguments. Previously we supported onlyJSONformat but the limitation of this format is that we can't add comments in this file for example why we enabled/disabled a checker, why an option is important etc.
From this release we will also supportYAMLformat:For more information see the documentation.analyzer: # Enable/disable checkers. - --enable=core.DivideZero
💻 CLI / Server improvements / fixes
- Allow
--fileandskipfileoption to be given together and analyze header file (#3616)
The CodeChecker VSCodePlugin uses the--fileparameter to analyze single files. Large projects load in their configuration using the--configparameter and if there is a-i skipfilegiven in the config,CodeChecker analyzecall drops an error. From this release CodeChecker will allow-i skipfileand--fileto be given together.
Also if a header file is given to the--fileoption CodeChecker under the hood will try to figure out which source files are depends on the given header file and we will analyze these source files. - Allow escaping
:in run names with\:(#3536)
In certain scenarios, the run name might contain a:character that does NOT separate a tag from a name. Commands such asserverandcmd resultsaccept:as a literal in the name, butcmd diffpreviously cut it as the "run tag" separator. - Update allowed TLS versions (#3594)
TLS1andTLS1.1were deprecated in RFC8996. From this release CodeChecker will enforce the newerTLS1.2orTLS1.3. - Fix HTML generation for CodeChecker cmd diff command (#3600)
If the diff command result contained reports from multiple source files (e.g.:a.cpp+b.cpp) theCodeChecker cmd diffcommand in HTML format generated HTML files for each source file but inserted the same list of reports in all of the HTML files. From this release CodeChecker will insert only those reports to a generated HTML file which are really related to that file. - Relative doc url to absolute file path (#3609)
Convert relativedoc_urlvalue's to absolute file paths in theCodeChecker checkersoutput. This way other tools can open and view these documentation files easily. - Fix html generation for report directory without plists (#3610)
Fix HTML generation for report directory which doesn't contain any analyzer result (plist) file.
🔁 Profile changes
- The following checkers are added to the following profiles (#3621)
bugprone-shared-ptr-array-mismatch:default,extreme,sensitivemisc-misleading-bidirectional:default,extreme,sensitivereadability-container-contains:default,extreme,sensitive
- The following checkers are removed from the following profiles (#3618)
cppcoreguidelines-narrowing-conversions:extreme
🐛 Analyze improvements / fixes
- Proper handling of multi-target build (#3598)
- Prefer ldlogger over intercept-build (#3605)
- Quote command line segment using shlex (#3578)
- Fix ldlogger escaping a bunch of characters (#3589)
- Handle relative file paths in compilation database (#3587)
- Avoid plist filenames being the same (#3588)
- Proper exit code for
CodeChecker checkin case of exception (#3603). - Print info message about logger tool (#3573)
- Add severity for
readability-duplicate-include(#3592)
📖 Documentation updates
- Update documentation with multiple source code comments in the same line (#3597)
- Highlight that user must be logged in before token generation (#3599)
- List possible severity levels for JSON report format (#3604)
- Extend documentation with implicitly disabled checkers under
--enable-all(#3611) - Added link to basic database setup (#3541)
- Fix grammatical and spelling errors in documentations (#3557)
- Mention CodeChecker vscode extension in the docs (#3585)
🔨 Other improvements / fixes.
- Thrift Python client example (#3575)
- No rebuild on satisfied requirements (#3547)
- Port LD-logger tests to python (#3153)
- Fix compile warnings, missing return statements, etc. (#3590)
- Fix the prepare debug scripts (#3614)
- Upgrade
python-ldapto3.4.0(#3550) - Upgrade
lxmlto4.7.1(#3553) - Upgrade
npmpackages (#3581, #3586) - Upgrade python version to
3.9.7in docker image (#3591)
For more information check the milestone.
🎉 CodeChecker VSCode plugin
We are proud to announce the official release of CodeChecker VSCode plugin.
🌟 Main features
- Run CodeChecker analysis from the editor and see the results automatically.
- Re-analyze the current file when saved.
- Commands and build tasks for running CodeChecker as part of a build system.
- Browse through the found reports and show the reproduction steps directly in the code.
- Navigate between the reproduction steps.
💻 Trying It Out
- Install CodeChecker version
6.18.2or later and optionally add it to thePATHenvironment variable. - Install CodeChecker extension from the Visual Studio Marketplace, from Open VSX or download manually from Downloads.
- Check the path to CodeChecker and set your preferred command-line arguments - see Configuring CodeChecker for more information.
- Open your project, and run an analysis, or browse through the found reports!