diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-12-14 04:02:09 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-12-14 04:38:33 +0000 |
| commit | 06deeb3ae7ef93eabe8e02cf4dbdf56dd7af4c07 (patch) | |
| tree | 0ae74f875d73757fa4473b69e681bdaad83c740f | |
| parent | b1dda9ca88a61cce7108fbda68177f6f1272f8e8 (diff) | |
| download | gentoo-utils-06deeb3ae7ef93eabe8e02cf4dbdf56dd7af4c07.tar.gz | |
grep for todo! and dbg! in check_commands and in CI
| -rw-r--r-- | .gitea/workflows/gentoo-utils.yml | 13 | ||||
| -rw-r--r-- | check_commands.txt | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 683524c..03c2117 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -153,3 +153,16 @@ 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: grep for patterns + run: | + git grep 'todo!|dbg!' -- '*.rs' && exit 1 || exit 0 diff --git a/check_commands.txt b/check_commands.txt index 671a1a2..664a7ac 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 +git grep 'todo!|dbg!' -- '*.rs' && exit 1 || exit 0 |
