Sha256: f1475a3cd2f7d37fad5fe14aa162461bc71b94dab59e74e4a2c79fcf89f07628
Contents?: true
Size: 625 Bytes
Versions: 7
Compression:
Stored size: 625 Bytes
Contents
STATS_DIRECTORIES = [ %w(Helpers app/helpers), %w(Controllers app/controllers), %w(APIs app/apis), %w(Components components), %w(Functional\ tests test/functional), %w(Models app/models), %w(Unit\ tests test/unit), %w(Libraries lib/), %w(Integration\ tests test/integration) ].collect { |name, dir| [ name, "#{RAILS_ROOT}/#{dir}" ] }.select { |name, dir| File.directory?(dir) } desc "Report code statistics (KLOCs, etc) from the application" task :stats do require 'code_statistics' CodeStatistics.new(*STATS_DIRECTORIES).to_s end
Version data entries
7 entries across 7 versions & 1 rubygems