varvet/godmin

View on GitHub
lib/godmin/paginator.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for pages is too high. [18.49/15]
Open

    def pages
      @pages ||= begin
        pages = (1..total_pages).to_a

        return pages unless total_pages > WINDOW_SIZE
Severity: Minor
Found in lib/godmin/paginator.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

There are no issues that match your filters.

Category
Status