Sha256: 1a93b353a6e0f0e20f2ff25e4b2f001a0a5d0b87c0e753ecb714a59860fc4118

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module Attractor
  # console reporter
  class ConsoleReporter < BaseReporter
    def report
      super
      puts 'Calculated churn and complexity'
      puts
      puts "file_path#{' ' * 53}complexity   churn"
      puts '-' * 80

      puts @values.map(&:to_s)

      puts
      puts 'Suggestions for refactorings:'
      @suggestions.each { |sug| puts sug.file_path }
      puts
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
attractor-0.6.1 lib/attractor/reporters/console_reporter.rb
attractor-0.6.0 lib/attractor/reporters/console_reporter.rb
attractor-0.5.1 lib/attractor/reporters/console_reporter.rb
attractor-0.5.0 lib/attractor/reporters/console_reporter.rb