Bug 420596

Summary: Specify working directory for cppcheck
Product: [Applications] kdevelop Reporter: Rafal Lalik <rafallalik>
Component: Analyzer: CppcheckAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rafal Lalik 2020-04-26 00:33:12 UTC
SUMMARY

By default QProcess used to run cppcheck uses WD of the invoking process.

Would be good to use QProcess::setWorkingDirectory() to set WD to the project root, that all the paths in the helper files (e.g. for suppression list option --suppressions-list=<file>) can be relative to the project.

Did not check code for other analyzers but for them the same would be also good.