lib/godmin/paginator.rb
Assignment Branch Condition size for pages is too high. [18.49/15] Open
Open
def pages
@pages ||= begin
pages = (1..total_pages).to_a
return pages unless total_pages > WINDOW_SIZE
- Read upRead up
- Exclude checks
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