Sha256: 177ed68c83731f47563bc1727b2774e8984fb42b70cd5cfe74db485f9b2b5937
Contents?: true
Size: 637 Bytes
Versions: 9
Compression:
Stored size: 637 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 @calculators.each do |calc| # e.g. ['js', JsCalculator'] puts calc.last.type values = calc.last.calculate suggester = Suggester.new(values) puts values&.map(&:to_s) puts puts 'Suggestions for refactorings:' suggester.suggest&.each { |sug| puts sug.file_path } puts end end end end
Version data entries
9 entries across 9 versions & 1 rubygems