app/controllers/registrations_controller.rb
Method has too many lines. [10/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def after_inactive_sign_up_path_for(resource)
if session[:pending_organisation_id]
UserOrganisationClaimer.new(self, resource, resource).call(session[:pending_organisation_id])
return organisation_path resource.pending_organisation
elsif session[:proposed_org]
- 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.
Assignment Branch Condition size for after_inactive_sign_up_path_for is too high. [16.16/15] (http://c2.com/cgi/wiki?AbcMetric) Open
Open
def after_inactive_sign_up_path_for(resource)
if session[:pending_organisation_id]
UserOrganisationClaimer.new(self, resource, resource).call(session[:pending_organisation_id])
return organisation_path resource.pending_organisation
elsif session[:proposed_org]
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Line is too long. [101/90] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
UserOrganisationClaimer.new(self, resource, resource).call(session[:pending_organisation_id])
- Exclude checks