1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/tasks/annotations.rake

23 lines
No EOL
533 B
Ruby

require 'source_annotation_extractor'
desc "Enumerate all annotations"
task :notes do
SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
end
namespace :notes do
desc "Enumerate all OPTIMIZE annotations"
task :optimize do
SourceAnnotationExtractor.enumerate "OPTIMIZE"
end
desc "Enumerate all FIXME annotations"
task :fixme do
SourceAnnotationExtractor.enumerate "FIXME"
end
desc "Enumerate all TODO annotations"
task :todo do
SourceAnnotationExtractor.enumerate "TODO"
end
end