-
-
Save jezdez/176261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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