Permalink
Browse files

Added todo task to aggregate spec excludes.

  • Loading branch information...
1 parent 511732d commit b177a54a47b4f94f34433d64eb02015c547e25ba @zenspider zenspider committed Jan 17, 2008
Showing with 19 additions and 0 deletions.
  1. +19 −0 rakelib/todo.rake
View
@@ -0,0 +1,19 @@
+# -*- ruby -*-
+
+task :todo do
+ excludes = Hash.new 0
+ Dir.chdir "spec/data" do
+ Find.find "." do |path|
+ next unless File.file? path
+ next unless File.size? path
+ dir = File.dirname(path).sub(/^\../, '')
+
+ excludes[dir] += File.readlines(path).size
+ end
+ end
+
+ excludes.sort_by { |_, v| -v }.each do |dir, count|
+ puts "%3d: %s" % [count, dir]
+ end
+end
+

0 comments on commit b177a54

Please sign in to comment.