AgileVentures/LocalSupport

View on GitHub
app/controllers/volunteer_ops_controller.rb

Summary

Maintainability
A
2 hrs
Test Coverage
A
95%

Class has too many lines. [127/100]
Open

class VolunteerOpsController < ApplicationController
  layout 'two_columns_with_map', except: :embedded_map
  before_action :set_organisation, only: [:new, :create]
  before_action :authorize, except: [:search, :show, :index, :embedded_map]
  prepend_before_action :set_volunteer_op, only: [:show, :edit]

This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Class VolunteerOpsController has 23 methods (exceeds 20 allowed). Consider refactoring.
Open

class VolunteerOpsController < ApplicationController
  layout 'two_columns_with_map', except: :embedded_map
  before_action :set_organisation, only: [:new, :create]
  before_action :authorize, except: [:search, :show, :index, :embedded_map]
  prepend_before_action :set_volunteer_op, only: [:show, :edit]
Severity: Minor
Found in app/controllers/volunteer_ops_controller.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status