diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/tasks/statistics.rake | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/railties/lib/tasks/statistics.rake b/railties/lib/tasks/statistics.rake index 66b654725b..fccb71b311 100644 --- a/railties/lib/tasks/statistics.rake +++ b/railties/lib/tasks/statistics.rake @@ -1,13 +1,15 @@ +STATS_DIRECTORIES = [ + %w(Helpers app/helpers), + %w(Controllers app/controllers), + %w(APIs app/apis), + %w(Components components), + %w(Functionals test/functional), + %w(Models app/models), + %w(Units test/unit) +] + desc "Report code statistics (KLOCs, etc) from the application" task :stats do require 'code_statistics' - CodeStatistics.new( - ["Helpers", "app/helpers"], - ["Controllers", "app/controllers"], - ["APIs", "app/apis"], - ["Components", "components"], - ["Functionals", "test/functional"], - ["Models", "app/models"], - ["Units", "test/unit"] - ).to_s + CodeStatistics.new(*STATS_DIRECTORIES).to_s end |