~kris/dots

srice

srice/.local/bin/todo -rw-r--r-- 359 bytes
e98f3b03 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# todo -- find TODO/FIXME/HACK/XXX comments in codebase
# Usage: todo [path]
#        todo src/

dir="${1:-.}"
rg --no-heading --line-number --color=always \
   '(TODO|FIXME|HACK|XXX|BUG|OPTIMIZE|NOTE):?\s' "$dir" \
   --glob '!node_modules' --glob '!.git' --glob '!vendor' \
   --glob '!build' --glob '!dist' --glob '!target' 2>/dev/null |
   sort