Skip to content

Commit 0b1723a

Browse files
committed
updated to only do py and md for todo
modified: README.md modified: entrypoint.sh
1 parent a8082cc commit 0b1723a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
Check that looks for existing TODO's and commented out code in a repo
44

5+
Only checks .py and .md files for TODOs,
6+
and only .py for commented out code
7+
58
TODO's are considered:
69
- `todo`
710
- `TODO`

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
passed=1
55

66

7-
todos=$(egrep -rn "XXX|fillme|FILLME|xxx|TODO|todo|to-do|FIXME|fix-me|fixme|fix me|to do|FIX ME|TO DO" *)
7+
todos=$(egrep --include="*.py" --include="*.md" -rn "XXX|fillme|FILLME|xxx|TODO|todo|to-do|FIXME|fix-me|fixme|fix me|to do|FIX ME|TO DO" *)
88
case $? in
99
0) echo $todos && passed=0;;
1010
*) echo "No TODO's found";;

0 commit comments

Comments
 (0)