summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index d4f44fa..ba08997 100644
--- a/Rakefile
+++ b/Rakefile
@@ -62,4 +62,20 @@ task :console do
sh "irb -rubygems -I lib -r ipaddress.rb"
end
-
+desc "Look for TODO and FIXME tags in the code"
+task :todo do
+ def egrep(pattern)
+ Dir['**/*.rb'].each do |fn|
+ count = 0
+ open(fn) do |f|
+ while line = f.gets
+ count += 1
+ if line =~ pattern
+ puts "#{fn}:#{count}:#{line}"
+ end
+ end
+ end
+ end
+ end
+ egrep /(FIXME|TODO|TBD)/
+end