Sha256: 78b4a691a287d0b7172300b0d46cb21f47ff73d536890b5bd133d355b0045ed6

Contents?: true

Size: 361 Bytes

Versions: 31

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_report'

module Reek
  module Report
    #
    # Displays a list of smells in JSON format
    # JSON with empty array for 0 smells
    #
    # @public
    #
    class JSONReport < BaseReport
      def show(out = $stdout)
        out.print ::JSON.generate smells.map(&:yaml_hash)
      end
    end
  end
end

Version data entries

31 entries across 29 versions & 2 rubygems

Version Path
reek-6.4.0 lib/reek/report/json_report.rb
reek-6.3.0 lib/reek/report/json_report.rb
reek-6.2.0 lib/reek/report/json_report.rb
reek-6.1.4 lib/reek/report/json_report.rb
reek-6.1.3 lib/reek/report/json_report.rb
reek-6.1.2 lib/reek/report/json_report.rb
reek-6.1.1 lib/reek/report/json_report.rb
reek-6.1.0 lib/reek/report/json_report.rb
reek-6.0.6 lib/reek/report/json_report.rb
reek-6.0.5 lib/reek/report/json_report.rb
reek-6.0.4 lib/reek/report/json_report.rb
reek-6.0.3 lib/reek/report/json_report.rb
reek-6.0.2 lib/reek/report/json_report.rb
reek-6.0.1 lib/reek/report/json_report.rb
reek-6.0.0 lib/reek/report/json_report.rb
reek-5.6.0 lib/reek/report/json_report.rb
reek-5.5.0 lib/reek/report/json_report.rb
reek-5.4.1 lib/reek/report/json_report.rb
reek-5.4.0 lib/reek/report/json_report.rb
reek-5.3.2 lib/reek/report/json_report.rb