Incremental analysis
Klocwork supports incremental analysis for both desktop projects and integration projects. In an incremental analysis (the default mode for desktop projects), the engine automatically detects and analyzes only the changed files and any other files affected by the changes.
By default, Klocwork uses file timestamps to determine which files need to be re-analyzed during incremental analysis. However, in some cases such as a rebase or update, your source control system may modify timestamps for all files, causing Klocwork to incorrectly flag the entire project for re-analysis.
To avoid this, you can configure Klocwork to use file checksums (MD5) instead of timestamps when determining which files have changed.
To enable this behavior, set the following environment variable before triggering the scan:
KW_ENABLE_MD5=1
This instructs Klocwork to analyze files based on their actual content changes, ignoring timestamp modifications.