7600aef48b
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
20 lines
No EOL
553 B
Ruby
20 lines
No EOL
553 B
Ruby
require 'source_annotation_extractor'
|
|
|
|
desc "Enumerate all annotations"
|
|
task :notes do
|
|
SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
|
|
end
|
|
|
|
namespace :notes do
|
|
["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
|
|
desc "Enumerate all #{annotation} annotations"
|
|
task annotation.downcase.intern do
|
|
SourceAnnotationExtractor.enumerate annotation
|
|
end
|
|
end
|
|
|
|
desc "Enumerate a custom annotation, specify with ANNOTATION=WTFHAX"
|
|
task :custom do
|
|
SourceAnnotationExtractor.enumerate ENV['ANNOTATION']
|
|
end
|
|
end |