Skip to content

Instantly share code, notes, and snippets.

@masarakki
Created October 6, 2016 12:15
Show Gist options
  • Save masarakki/cd18176d8d8075222c727c8a7d32880e to your computer and use it in GitHub Desktop.
Save masarakki/cd18176d8d8075222c727c8a7d32880e to your computer and use it in GitHub Desktop.
rake notes:test
require 'rails/source_annotation_extractor'
namespace :notes do
task :test do
result = SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", tag: true
exit 1 unless result.empty?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment