This feature allows for quick, incremental analyses of changed source files to enable pre/post-checkin/commit like behaviour. The idea is that only changed files are analysed using the Klocwork kwciagent tool to replicate the analysis developers would perform using Visual Studio, Eclipse or the command line utility. To enable this the plugin takes a list of the changed files from the SCM, this enables the ability to analyse only the changed files when the workspace isn’t kept. Leave this unticked to analyse the whole project or if the workspace is kept then a standard incremental analysis.
The diff file list is the file to contain the changed source files that Klocwork should analyse. It is required that any analysed files should exist in the build specification generated by kwinject
IMPORTANT: It is required that any files to be analysed must also exist in the build specification specified
If using Git, please provide the previous commit that Git should perform a "diff" with. The change list between the current commit and the specified previous commit will then be added to the diff file list for Klocwork to process by automatically calling "git diff <previous_commit>" during the build.
If you are not using Git, or want to manually generate the change list using Git, then please select this option. You will need to generate the diff file list with a custom build-step (or similar). Future support for more SCM tools (such as SVN, perforce) may be added depending on demand. The format of the file should be a changed source file per line
Future support for more SCM tools (such as SVN, perforce) may be added depending on demand.