When invoked, this script would look for matching references in the whole code base and build a report with the matches.
e.g.
Code base has the following
# NOTE gid: 1 This code should be reviewed once the code has been merged
def remove_me_after_something_has_been_done
puts "I'm useless after something else has been merged"
end
Our script would return filename and line number as such
app/controllers/useless_method_controller.rb:33