How to check TODOs and FIXMEs in rails?
Rails provides a way to find all the TODO
and FIXME
notes in your application.
Let’s see how to do it.
Find notes with any annotation (TODO’s and FIXME’s)
$ bin/rails notes
app/controllers/posts_controller.rb:
* [ 9] [TODO] Move this logic to a concern
* [18] [FIXME] Refactor this method
app/models/post.rb:
* [ 2] [TODO] Refactor this validation
Find notes with specific annotation
$ bin/rails notes -a TODO
app/controllers/posts_controller.rb:
* [9] Move this logic to a concern
app/models/post.rb:
* [2] Refactor this validation
$ bin/rails notes -a FIXME
app/controllers/posts_controller.rb:
* [18] Refactor this method