Sha256: 6486f4753c078ee0c552f74d09328e6e8865dbae0e48e5fa9b5bcaac381e4341

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true
require_relative 'base_report'

module Reek
  module Report
    #
    # Displays a list of smells in YAML format
    # YAML with empty array for 0 smells
    #
    # @public
    #
    class YAMLReport < BaseReport
      def show(out = $stdout)
        out.print smells.map { |smell| warning_formatter.format_hash(smell) }.to_yaml
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
reek-4.6.1 lib/reek/report/yaml_report.rb
reek-4.6.0 lib/reek/report/yaml_report.rb
reek-4.5.6 lib/reek/report/yaml_report.rb
reek-4.5.5 lib/reek/report/yaml_report.rb
reek-4.5.4 lib/reek/report/yaml_report.rb
reek-4.5.3 lib/reek/report/yaml_report.rb
reek-4.5.2 lib/reek/report/yaml_report.rb
reek-4.5.1 lib/reek/report/yaml_report.rb
reek-4.5.0 lib/reek/report/yaml_report.rb