Strip non C++ files before analysing

This commit is contained in:
Dan Hawkins 2019-08-23 21:51:00 +01:00
commit 7185c9f4ce

View file

@ -66,6 +66,7 @@ pipeline {
echo "Executing: ${CCM} ${SRC} /xml /nummetrics=100 > ccm.xml"
if (isUnix()) {
sh """#!/bin/bash
find "${SRC}" -type f ! -name "*.cpp" -a ! -name "*.h" -a ! -name "*.hpp" -a ! -name "*.c" -exec rm -r {} \;
# Uses mono
"${CCM}" "${SRC}" /xml /nummetrics=100 > ccm.xml
"""