lib/attractor/reporters/console_reporter.rb in attractor-2.0.5 vs lib/attractor/reporters/console_reporter.rb in attractor-2.1.0
- old
+ new
@@ -3,24 +3,24 @@
module Attractor
# console reporter
class ConsoleReporter < BaseReporter
def report
super
- puts 'Calculated churn and complexity'
+ puts "Calculated churn and complexity"
puts
- puts "file_path#{' ' * 53}complexity churn"
- puts '-' * 80
+ 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:'
+ puts "Suggestions for refactorings:"
suggester.suggest&.each { |sug| puts sug.file_path }
puts
end
end
end