<commit_before>#!/bin/bash

echo "-----------------"
echo "Building Xpiks..."
echo "-----------------"

pushd src/xpiks-qt/

qmake "CONFIG+= debug travis-ci without-video" xpiks-qt.pro
make

exitcode=$?

if [ $exitcode != 0 ]; then
    echo "Failed to build Xpiks"
    exit $exitcode
fi

echo "Building Xpiks... Done"

echo "Starting cppcheck..."

cppcheck --language=c++ --inconclusive --quiet -DQT_DEBUG -DWITH_LOGS -DWITH_PLUGINS -DWITH_STDOUT_LOGS -DTRAVIS_CI -UCORE_TESTS -UINTEGRATION_TESTS -UQ_OS_WIN -DQ_OS_LINUX --error-exitcode=1 --suppress=missingIncludeSystem --suppress='*:moc_*.cpp' --max-configs=15 --enable=warning .

echo "cppcheck exited with code $?"

popd
<commit_msg>Tweak cppcheck<commit_after>#!/bin/bash

echo "-----------------"
echo "Building Xpiks..."
echo "-----------------"

pushd src/xpiks-qt/

qmake "CONFIG+= debug travis-ci without-video" xpiks-qt.pro
make

exitcode=$?

if [ $exitcode != 0 ]; then
    echo "Failed to build Xpiks"
    exit $exitcode
fi

echo "Building Xpiks... Done"

echo "Starting cppcheck..."

cppcheck --language=c++ -j 4 --inconclusive --quiet -DQT_DEBUG -DWITH_LOGS -DWITH_PLUGINS -DWITH_STDOUT_LOGS -DTRAVIS_CI -UCORE_TESTS -UINTEGRATION_TESTS -UQ_OS_WIN -DQ_OS_LINUX --error-exitcode=1 --suppress=missingIncludeSystem --suppress='*:moc_*.cpp' --max-configs=15 --enable=warning .

echo "cppcheck exited with code $?"

popd

{'fraction_non_alphanumeric': 0.1874095513748191, 'fraction_numerical': 0.006512301013024602, 'mean_word_length': 3.1283582089552238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6412459', 'n_tokens_mistral': 549, 'n_tokens_neox': 515, 'n_words': 121}