Read Commented Notes
Want to resolve all those # TODO
, # FIXME
, and # OPTIMIZE
comments in your Rails app? Good call, we don't want these getting too comfortable.
To demonstrate, push a note into a new file app/models/foo.rb
:
$ echo '# TODO DRY this up!' >> app/models/foo.rb
Then run rake notes
:
$ rake notes
app/models/foo.rb:
* [1] [TODO] DRY this up!
rake -T | grep notes
shows our options, including flags to filter results. We also get rake notes:custom
, to find a custom note tag:
$ echo '# HACK woah.' >> app/models/foo.rb
$ rake notes:custom ANNOTATION=HACK
app/models/foo.rb:
* [2] woah.
Tweet