l4ofha
Last Updated: February 25, 2016
·
1.489K
· borntyping
8dd5661684a7385fe723b7e7588e91ee

Neatly list TODO items from a codebase with ack

$ ack "TODO: (.+)" --output '$1'

For example:

$ ack "TODO: (.+)" --output '$1' python-module
setup.py
10:No author set

src/__init__.py
2:Import dependancies
5:Remove unneeded import
Say Thanks
Respond

1 Response
Add your response

9613
16246b452f3cb0a77a9fa257be55aed2

Good tip, thanks.
Just one note for Perl developers:
a little change to avoid 'TODO: {}' label from tests and handle TODO without ':' also

ack "TODO\s*:?\s?([^{].+)" --output '$1'

over 1 year ago ·