Created
March 5, 2009 01:46
-
-
Save shawn42/74130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STATS_DIRECTORIES = [ | |
%w(Source src/), | |
%w(Config config/), | |
%w(Maps maps/), | |
%w(Unit\ tests specs/), | |
%w(Libraries lib/), | |
].collect { |name, dir| [ name, "#{APP_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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment