You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: heading_formatter.rb
    path of file: ./repos/reek/lib/reek/report
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Reek
  module Report
    #
    # Base
    
      def formatted_header(examiner)
        count = examiner.smells_count
        result = Rainbow("#{examiner.origin} -- ").cyan +
          Rainbow("#{count} warning").yellow
        result += Rainbow('s').yellow unless count == 1
        result
      end