lib/sandi_meter/formatter.rb in sandi_meter-1.1.5 vs lib/sandi_meter/formatter.rb in sandi_meter-1.1.6

- old
+ new

@@ -35,20 +35,20 @@ puts "\nClasses with 100+ lines" print_array_of_arrays [["Class name", "Size", "Path"]] + data[:first_rule][:log][:classes] end if data[:first_rule][:log][:misindented_classes].any? - puts "\nMissindented classes" + puts "\nMisindented classes" print_array_of_arrays [["Class name", "Path"]] + data[:first_rule][:log][:misindented_classes].map { |row| row.delete_at(1); row } # 1 – size, which nil for misindented_classes end if data[:second_rule][:log][:methods].any? puts "\nMethods with 5+ lines" print_array_of_arrays [["Class name", "Method name", "Size", "Path"]] + data[:second_rule][:log][:methods] end if data[:second_rule][:log][:misindented_methods].any? - puts "\nMissindented methods" + puts "\nMisindented methods" print_array_of_arrays [["Class name", "Method name", "Path"]] + data[:second_rule][:log][:misindented_methods].map { |row| row.delete_at(2); row } # 2 – size, which nil for misindented_methods end if data[:third_rule][:log][:method_calls].any? puts "\nMethod calls with 4+ arguments"