Skip to content

Instantly share code, notes, and snippets.

@cslarsen
Created December 3, 2014 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cslarsen/a581cdcfa277b9c4c372 to your computer and use it in GitHub Desktop.
Save cslarsen/a581cdcfa277b9c4c372 to your computer and use it in GitHub Desktop.
Prints TODO and FIXME in code, along with who's probably responsible from git blame. Requires parallel to work.
#!/bin/bash
# Show all TODO and FIXME from current directory along with who's
# responsible.
#
# Requires parallel to work (unless you want to make everything slow)
( find . \( -name '*.cpp' -o \
-name '*.py' -o \
-name '*.h' -o \
-name '*.hpp' \) -print0 ) \
| parallel -0 git blame \
| egrep 'TODO|FIXME'
@cslarsen
Copy link
Author

cslarsen commented Dec 3, 2014

Of course, you should add other type of files to search for. Here, C++ and Python files.

In fact, it would be nice to add parameters to the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment