diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 7451149e8..4d6b89dc6 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -30,6 +30,10 @@ jobs: - name: Check DEBUG_MODE if: always() run: bash tools/checkDebug.sh + - name: Check TODO + if: always() + run: bash tools/checkTodo.sh + continue-on-error: true - name: Check for FIXME if: always() run: bash tools/checkFixme.sh diff --git a/tools/checkTodo.sh b/tools/checkTodo.sh new file mode 100755 index 000000000..fa333a5c6 --- /dev/null +++ b/tools/checkTodo.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +SCRIPTPATH=`dirname $(readlink -f $0)` +cd $SCRIPTPATH/../cScripts + +grep -rn "TODO" +[[ ! $(grep -rn "TODO" | wc -l) == 0 ]] && echo "WARNING: TODO found" && exit 1 + +echo "SUCCESS" +exit 0 \ No newline at end of file