mysociety/alaveteli

View on GitHub
app/controllers/admin_general_controller.rb

Summary

Maintainability
B
4 hrs
Test Coverage

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

  def index
    # Tasks to do
    @requires_admin_requests = InfoRequest.
      find_in_state('requires_admin').
        not_embargoed
Severity: Major
Found in app/controllers/admin_general_controller.rb - About 2 hrs to fix

    Method timeline has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def timeline
        # Recent events
        @events_title = get_events_title
    
        @events = WillPaginate::Collection.create((params[:page] or 1), 100) do |pager|
    Severity: Minor
    Found in app/controllers/admin_general_controller.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status