class RuboCop::Cop::Style::Copyright

def notice_found?(processed_source)

def notice_found?(processed_source)
  notice_found = false
  notice_regexp = Regexp.new(notice)
  processed_source.each_token do |token|
    break unless token.comment?
    notice_found = !(token.text =~ notice_regexp).nil?
    break if notice_found
  end
  notice_found
end