2007-12-21 08:48:59 +01:00
|
|
|
require 'source_annotation_extractor'
|
|
|
|
|
|
|
|
desc "Enumerate all annotations"
|
|
|
|
task :notes do
|
|
|
|
SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace :notes do
|
2008-10-27 07:47:01 +01:00
|
|
|
["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
|
|
|
|
desc "Enumerate all #{annotation} annotations"
|
|
|
|
task annotation.downcase.intern do
|
|
|
|
SourceAnnotationExtractor.enumerate annotation
|
|
|
|
end
|
2007-12-21 08:48:59 +01:00
|
|
|
end
|
|
|
|
|
2008-10-27 07:47:01 +01:00
|
|
|
desc "Enumerate a custom annotation, specify with ANNOTATION=WTFHAX"
|
|
|
|
task :custom do
|
|
|
|
SourceAnnotationExtractor.enumerate ENV['ANNOTATION']
|
2007-12-21 08:48:59 +01:00
|
|
|
end
|
|
|
|
end
|