Skip to content

Instantly share code, notes, and snippets.

@jtauber
Created August 27, 2009 12:45
Show Gist options
  • Save jtauber/176259 to your computer and use it in GitHub Desktop.
Save jtauber/176259 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import os.path
for root, dirs, files in os.walk("."):
for filename in files:
path = os.path.join(root, filename)
if any(filename.endswith(ending) for ending in [".py", ".html", ".txt", ".css"]):
marked = []
for line_num, line in enumerate(open(path)):
if "@@@" in line or "TODO" in line or "FIXME" in line:
marked.append(line_num + 1)
if marked:
print "%s : %s" % (path, marked)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment