Re-enable spec/library for full CI runs.
[rbx.git] / rakelib / todo.rake
blob3ab469da5b2b96a73867d2121055519bfbf09d46
1 # -*- ruby -*-
3 task :todo do
4   excludes = Hash.new 0
5   Find.find "spec/tags" do |path|
6     next unless File.file? path
7     next unless File.size? path
8     dir = File.dirname(path).sub(/^\../, '')
10     excludes[dir] += File.readlines(path).size
11   end
13   total = 0
14   excludes.sort_by { |_, v| -v }.each do |dir, count|
15     puts "%3d: %s" % [count, dir]
16     total += count
17   end
18   puts "%3d: TOTAL" % total
19 end