app/services/create_proposed_organisation_edit.rb
Method has too many lines. [7/5] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def initialize(listener, params, model_klass, user_klass, mailer_klass)
@listener = listener
@params = params
@organisation = params[:organisation]
@editor = params[:editor]
- 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.
Method has too many lines. [6/5] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def run
unless editor.siteadmin?
merge_in_non_published_fields
send_email_to_superadmin_about_org_edit
listener.set_notice('Edit is pending admin approval.')
- 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.
Method with
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def self.with(listener, params, model_klass = ProposedOrganisationEdit, user_klass = User, mailer_klass = AdminMailer)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(listener, params, model_klass, user_klass, mailer_klass)
Line is too long. [120/90] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
def self.with(listener, params, model_klass = ProposedOrganisationEdit, user_klass = User, mailer_klass = AdminMailer)
- Exclude checks
Line is too long. [98/90] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
attr_reader :listener, :params, :organisation, :model_klass, :user_klass, :mailer_klass, :editor
- Exclude checks