Skip to content

Commit ce18d8c

Browse files
committed
Add CI checks against todo comments without issues
1 parent ffe6fc2 commit ce18d8c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/minimal-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212
# Don't use more features like "gdnative_bindings_generator/debug" to keep CI truly minimal
1313
GDRUST_FEATURES: "gdnative/async,gdnative/serde"
1414

15+
RIPGREP_VERSION: "13.0.0"
16+
1517
on:
1618
pull_request:
1719
branches:
@@ -52,6 +54,19 @@ jobs:
5254
- name: "Check clippy"
5355
run: cargo clippy --workspace --features ${GDRUST_FEATURES} -- -D clippy::style -D clippy::complexity -D clippy::perf -D clippy::dbg_macro -D clippy::todo -D clippy::unimplemented
5456

57+
check-todo:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v3
61+
- name: "Install ripgrep"
62+
run: |
63+
cd /tmp
64+
wget --no-verbose https://github.com/BurntSushi/ripgrep/releases/download/${RIPGREP_VERSION}/ripgrep-${RIPGREP_VERSION}-x86_64-unknown-linux-musl.tar.gz -O ripgrep.tar.gz
65+
tar -zxvf ripgrep.tar.gz
66+
sudo mv ripgrep-${RIPGREP_VERSION}-x86_64-unknown-linux-musl/rg /usr/bin
67+
- name: "Look for TODO comments without issue numbers attached to them"
68+
run: "! rg -iTh --pcre2 '(?<!clippy::)(TODO|FIXME)(?!!\\(\\)|\\((#|(\\w+/)+)\\d+\\))'"
69+
5570
unit-test:
5671
runs-on: ubuntu-latest
5772
steps:

0 commit comments

Comments
 (0)