Sha256: 90199081e7ee8168e268ae3a6bfcb2cf9bfffbb9c2793fb142f14173e7ddd9e7

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 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

8 entries across 8 versions & 1 rubygems

Version Path
reek-4.8.2 lib/reek/report/yaml_report.rb
reek-4.8.1 lib/reek/report/yaml_report.rb
reek-4.8.0 lib/reek/report/yaml_report.rb
reek-4.7.3 lib/reek/report/yaml_report.rb
reek-4.7.2 lib/reek/report/yaml_report.rb
reek-4.7.1 lib/reek/report/yaml_report.rb
reek-4.7.0 lib/reek/report/yaml_report.rb
reek-4.6.2 lib/reek/report/yaml_report.rb