2007-09-28 13:02:40 -04:00
|
|
|
require 'source_annotation_extractor'
|
2007-02-25 14:40:37 -05:00
|
|
|
|
|
|
|
desc "Enumerate all annotations"
|
|
|
|
task :notes do
|
|
|
|
SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace :notes do
|
2008-06-22 09:00:40 -04:00
|
|
|
["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
|
|
|
|
desc "Enumerate all #{annotation} annotations"
|
|
|
|
task annotation.downcase.intern do
|
|
|
|
SourceAnnotationExtractor.enumerate annotation
|
|
|
|
end
|
2007-02-25 14:40:37 -05:00
|
|
|
end
|
|
|
|
|
2008-06-22 09:00:40 -04:00
|
|
|
desc "Enumerate a custom annotation, specify with ANNOTATION=WTFHAX"
|
|
|
|
task :custom do
|
|
|
|
SourceAnnotationExtractor.enumerate ENV['ANNOTATION']
|
2007-02-25 14:40:37 -05:00
|
|
|
end
|
|
|
|
end
|