Sha256: 94eea2c1eb023a267e48313350af1ca33e24707cb843bbe3ce46c1054d5842ad

Contents?: true

Size: 353 Bytes

Versions: 31

Compression:

Stored size: 353 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(&:yaml_hash).to_yaml
      end
    end
  end
end

Version data entries

31 entries across 29 versions & 2 rubygems

Version Path
reek-5.3.1 lib/reek/report/yaml_report.rb
reek-5.3.0 lib/reek/report/yaml_report.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/yaml_report.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/yaml_report.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/yaml_report.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/yaml_report.rb
reek-5.2.0 lib/reek/report/yaml_report.rb
reek-5.1.0 lib/reek/report/yaml_report.rb
reek-5.0.2 lib/reek/report/yaml_report.rb
reek-5.0.1 lib/reek/report/yaml_report.rb
reek-5.0.0 lib/reek/report/yaml_report.rb