class RuboCop::Cop::Style::Encoding

def on_new_investigation

def on_new_investigation
  return if processed_source.buffer.source.empty?
  comments.each do |line_number, comment|
    next unless offense?(comment)
    register_offense(line_number, comment)
  end
end