lib/teuton/report/close.rb in teuton-2.3.5 vs lib/teuton/report/close.rb in teuton-2.3.6

- old
+ new

@@ -1,18 +1,15 @@ -# frozen_string_literal: true # Close Show methods for Report class. class Report ## # Calculate final values: # * grade # * max_weight # * good_weight,d # * fail_weight # * fail_counter - # rubocop:disable Metrics/AbcSize - # rubocop:disable Metrics/MethodLength def close app = Application.instance max = 0.0 good = 0.0 fail = 0.0 @@ -38,8 +35,6 @@ i = good.to_f / max i = 0 if i.nan? @tail[:grade] = (100.0 * i).round @tail[:grade] = 0 if @tail[:unique_fault].positive? end - # rubocop:enable Metrics/AbcSize - # rubocop:enable Metrics/MethodLength end