psu-libraries/psulib_blacklight

View on GitHub
app/controllers/catalog_controller.rb

Summary

Maintainability
B
6 hrs
Test Coverage
A
100%

File catalog_controller.rb has 373 lines of code (exceeds 250 allowed). Consider refactoring.
Open

class CatalogController < ApplicationController
  include BlacklightAdvancedSearch::Controller
  include BlacklightRangeLimit::ControllerOverride
  include Blacklight::Catalog
  include Blacklight::Configurable
Severity: Minor
Found in app/controllers/catalog_controller.rb - About 4 hrs to fix

Method index has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def index
    cache_key = nil
    # No other params presents indicates we are on the homepage
    if params.keys.eql? %w[controller action]
      cache_key = "#{params['controller']}/#{params['action']}facet_query"
Severity: Minor
Found in app/controllers/catalog_controller.rb - About 1 hr to fix

There are no issues that match your filters.

Category
Status