Skip to content
Browse files

Apply patch for todo. Fixes #810

  • Loading branch information...
1 parent aaf7cc8 commit 0640ecef305e4072a2dab2fcfbf34ec2f61c4c2e Evan Phoenix committed Apr 11, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 Rakefile
View
14 Rakefile
@@ -209,6 +209,16 @@ end
desc "Print list of items marked to-do in kernel/ (@todo|TODO)"
task :todos do
- sh "grep", "-Rn", "@todo", "kernel"
- sh "grep", "-Rn", "TODO", "kernel"
+
+ # create array with files to be checked
+ filesA = Dir['kernel/**/*.*']
+
+ # search for @todo or TODO
+ filesA.sort!.each do |filename|
+ File.open(filename) do |file|
+ file.each do |line|
+ puts "#{filename} #{file.lineno.to_s}:\t#{line.strip}" if line.include?("@todo") or line.include?("TODO")
+ end
+ end
+ end
end

0 comments on commit 0640ece

Please sign in to comment.
Something went wrong with that request. Please try again.