2 %w(Controllers app/controllers),
3 %w(Helpers app/helpers),
7 %w(Integration\ tests test/integration),
8 %w(Functional\ tests test/functional),
9 %w(Unit\ tests test/unit)
11 ].collect { |name, dir| [ name, "#{RAILS_ROOT}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
13 desc "Report code statistics (KLOCs, etc) from the application"
15 require 'code_statistics'
16 CodeStatistics.new(*STATS_DIRECTORIES).to_s