Skip to content

Commit

Permalink
Tighten TODO check to all directories (#6177)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed May 17, 2024
1 parent b3d0eff commit 8cc1c42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/check-todo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DENYLIST="TODO FIXME"
STATUS=0

for DENYTERM in $DENYLIST; do
FOUND=$(git ls-files "$@" | xargs grep -n "$DENYTERM")
FOUND=$(git ls-files ":!:3rdparty" ":!:.github/ISSUE_TEMPLATE" ":!:scripts/ci-checks.sh" ":!:scripts/check-todo.sh" ":!:Doxyfile" "$@" | xargs grep -n "$DENYTERM")

if [ "$FOUND" == "" ]; then
echo "No ${DENYTERM}s found"
Expand Down
3 changes: 2 additions & 1 deletion scripts/ci-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ group "Shell scripts"
git ls-files | grep -e '\.sh$' | grep -E -v "^3rdparty" | xargs shellcheck -s bash -e SC2044,SC2002,SC1091,SC2181
endgroup

# No inline TODOs in the codebase, use tickets, with a pointer to the code if necessary.
group "TODOs"
"$SCRIPT_DIR"/check-todo.sh include src
"$SCRIPT_DIR"/check-todo.sh .
endgroup

group "Public includes"
Expand Down

0 comments on commit 8cc1c42

Please sign in to comment.