app/controllers/volunteer_ops_controller.rb
Class has too many lines. [131/100] Open
Open
class VolunteerOpsController < ApplicationController
layout :choose_layout
before_action :set_organisation, only: [:new, :create]
before_action :authorize, except: [:search, :show, :index]
- Read upRead up
- Exclude checks
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
Open
class VolunteerOpsController < ApplicationController
layout :choose_layout
before_action :set_organisation, only: [:new, :create]
before_action :authorize, except: [:search, :show, :index]
Method has too many lines. [8/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def index
@volunteer_ops = displayed_volunteer_ops unless iframe_map?
@markers = BuildMarkersWithInfoWindow.with(VolunteerOp.build_by_coordinates, self)
response.headers.delete 'X-Frame-Options' if iframe?
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.