l4ofha
Last Updated: February 25, 2016
·
1.532K
· borntyping

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

1 Response
Add your response

9613

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 ·
Filed Under