p4r4digm/todo-helper — pull request #3 by pconerly (2013-08-21 04:52:57+00:00)
Title: Pygment finds todo

@p4r4digm Please review.

Features:
* Added a bunch of test files. Some of them have a `TODO` in them.
* `findTodo.py` provides the `walk()` function, that will `os.walk` a directory and find all instances of comments with `TODO` in them. It will returns a list of dictionaries, where the structure is:
```
[
{
'filename': '/target.py',
'value': u'# TODO: what1',
'linenumber': 3
},
{
'filename': '/target.py',
'value': u'## TODO: what2',
'linenumber': 5
},
{
'filename': '/target.py',
'value': u'## TODO: hmmm',
'linenumber': 9
},
{
'filename': '/test.adb',
'value': u'-- TODO testing123\n',
'linenumber': 3
},
{
'filename': '/test.adb',
'value': u'-- TODO testing123\n',
'linenumber': 203},
{
'filename': '/test.asy',
'value': u'// TODO testing123\n',
'linenumber': 23},
{
'filename': '/test.awk',
'value': u'# TODO testing123',
'linenumber': 67},
{
'filename': '/testfolder/test.cs',
'value': u'// TODO testing123\n',
'linenumber': 29},
{
'filename': '/testfolder/test.cs',
'value': u'/* TODO testing123 block */',
'linenumber': 30
}
]
```