class RuboCop::Cop::Style::CommentedKeyword
def on_new_investigation
def on_new_investigation processed_source.comments.each do |comment| next unless (match = line(comment).match(/(?<keyword>\S+).*#/)) && offensive?(comment) register_offense(comment, match[:keyword]) end end