lib/oink/reports/base.rb

Summary

Maintainability
A
1 hr
Test Coverage

Assignment Branch Condition size for print_summary is too high. [52.12/20]
Open

      def print_summary(output)
        output.puts "\n-- SUMMARY --\n"
        output.puts "Worst Requests:"
        @bad_requests.each_with_index do |offender, index|
          output.puts "#{index + 1}. #{offender.datetime}, #{offender.display_oink_number}, #{offender.action}"
Severity: Minor
Found in lib/oink/reports/base.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method print_summary has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def print_summary(output)
        output.puts "\n-- SUMMARY --\n"
        output.puts "Worst Requests:"
        @bad_requests.each_with_index do |offender, index|
          output.puts "#{index + 1}. #{offender.datetime}, #{offender.display_oink_number}, #{offender.action}"
Severity: Minor
Found in lib/oink/reports/base.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status