Sha256: 775676718fa085d3427b0c8b6d50dc9081e0be6ab759a9c863ed08254d8e25e7

Contents?: true

Size: 434 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

Version Path
attractor-1.0.2 lib/attractor/reporters/console_reporter.rb
attractor-1.0.1 lib/attractor/reporters/console_reporter.rb
attractor-1.0.0 lib/attractor/reporters/console_reporter.rb