mirror of
https://github.com/github/rails.git
synced 2026-02-18 01:51:49 -05:00
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
16 lines
401 B
Ruby
16 lines
401 B
Ruby
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(*STATS_DIRECTORIES).to_s
|
|
end
|