Sha256: f0f4f6afc90fb2cfcab840cf60a726863096ac56adec32a634da9f0c613d8696

Contents?: true

Size: 515 Bytes

Versions: 12

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

require_relative '../base_report'
require_relative 'code_climate_formatter'

module Reek
  module Report
    #
    # Displays a list of smells in Code Climate engine format
    # (https://github.com/codeclimate/spec/blob/master/SPEC.md)
    # JSON with empty array for 0 smells
    #
    class CodeClimateReport < BaseReport
      def show(out = $stdout)
        smells.map do |smell|
          out.print CodeClimateFormatter.new(smell).render
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reek-6.1.4 lib/reek/report/code_climate/code_climate_report.rb
reek-6.1.3 lib/reek/report/code_climate/code_climate_report.rb
reek-6.1.2 lib/reek/report/code_climate/code_climate_report.rb
reek-6.1.1 lib/reek/report/code_climate/code_climate_report.rb
reek-6.1.0 lib/reek/report/code_climate/code_climate_report.rb
reek-6.0.6 lib/reek/report/code_climate/code_climate_report.rb
reek-6.0.5 lib/reek/report/code_climate/code_climate_report.rb
reek-6.0.4 lib/reek/report/code_climate/code_climate_report.rb
reek-6.0.3 lib/reek/report/code_climate/code_climate_report.rb
reek-6.0.2 lib/reek/report/code_climate/code_climate_report.rb
reek-6.0.1 lib/reek/report/code_climate/code_climate_report.rb
reek-6.0.0 lib/reek/report/code_climate/code_climate_report.rb