Skip to content

Instantly share code, notes, and snippets.

@jsborjesson
Created April 14, 2014 09:46
Show Gist options
  • Save jsborjesson/10633069 to your computer and use it in GitHub Desktop.
Save jsborjesson/10633069 to your computer and use it in GitHub Desktop.
Add more folders to rake stats
task :register_statistics do
require 'rails/code_statistics'
STATS_DIRECTORIES << ['Services', 'app/services']
STATS_DIRECTORIES << ['Services Tests', 'test/services']
CodeStatistics::TEST_TYPES << 'Services Tests'
end
Rake::Task['stats'].enhance [:register_statistics]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment