'CppCheck include paths
As my application grows I have to add new directories for CppCheck to check. Why is my CppCheck able to find all files in subdirectories for the src/ folder but not for the include folder? I have to add each include folder manually.
stage('CppCheck') {
steps {
dir("${env.WORKSPACE}/${FOLDERS_TO_SCAN}"){
sh label: '', returnStatus: true, script: 'cppcheck --check-config --inline-suppr -itest/ -Iinclude/utilities -Iinclude/ src/ cppcheck --enable=all --suppress=missingIncludeSystem . --inconclusive --xml --xml-version=2 graphal 2> cppcheck-result.xml'
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
