From a9f7288ccedeb5de7ec9de509df67b31bb509c27 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 14 Dec 2025 04:02:09 +0000 Subject: [PATCH] grep for todo! and dbg! in check_commands and in CI --- .gitea/workflows/gentoo-utils.yml | 14 ++++++++++++++ check_commands.txt | 1 + 2 files changed, 15 insertions(+) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 683524c..c1dd991 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -153,3 +153,17 @@ jobs: run: | meson setup -Ddocs=enabled docs ninja rustdoc -C docs + + grep: + runs-on: brutalisk + needs: [build-oci-image] + container: + image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} + steps: + - name: Checkout repo + uses: actions/checkout@v5 + + - name: Build Documentation + run: | + git grep 'todo!|dbg!' && exit 1 + diff --git a/check_commands.txt b/check_commands.txt index 671a1a2..604a55b 100644 --- a/check_commands.txt +++ b/check_commands.txt @@ -3,3 +3,4 @@ ninja rustfmt -C build ninja rustdoc -C build ninja clippy -C build ninja test -C build +egrep 'todo!|dbg!' $(find src -type f -name '*.rs') && return 1