Skip to content

Commit e4eace7

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/minimal-ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ jobs:
5252
- name: "Check clippy"
5353
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
5454

55+
check-todo:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v3
59+
- name: "Install ripgrep"
60+
run: "sudo apt-get update && sudo apt-get install ripgrep"
61+
- name: "Look for TODO comments without issue numbers attached to them"
62+
run: "! rg -iTh --pcre2 '(?<!clippy::)(TODO|FIXME)(?!!\\(\\)|\\((#|(\\w+/)+)\\d+\\))'""
63+
5564
unit-test:
5665
runs-on: ubuntu-latest
5766
steps:

0 commit comments

Comments
 (0)