Skip to content

Commit

Permalink
Added todo check script this is a valid error. Its just to get them l…
Browse files Browse the repository at this point in the history
…isted (#1110)
  • Loading branch information
AndreasBrostrom authored Jan 10, 2024
1 parent da05cf9 commit a17cd11
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions tools/checkTodo.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a17cd11

Please sign in to comment.