blob: 48ac40099a0c089dc5df79512bfa731ebca5cbda (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|