I've added some folders (lib, spec, cells, etc.) to my Rails app and would like to add them to the rake stats list. Is it possible to add new folders?
Here is an excellent answer to find where a specific rake task is defined.
With that tip, found that the rake stats
task is defined in gems/railties-3.2.11/lib/rails/tasks/statistics.rake
file; so it is in the railties gem
which is part of the rails repository.
At the very top of the file, the directories to be considered are included in the STATS_DIRECTORIES
variable.
Probably best to implement a custom rake task - named my_stats
for example - with the same code, and add the new folders that you want to include.