app/controllers/profiles_controller.rb
Assignment Branch Condition size for update is too high. [<2, 17, 3> 17.38/15] Open
Open
def update
respond_to do |format|
result = Users::UpdateService.new(current_user, user_params.merge(user: @user)).execute
if result[:status] == :success
- 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 and https://en.wikipedia.org/wiki/ABC_Software_Metric.
Line is too long. [107/100] Open
Open
format.html { redirect_back_or_default(default: { action: 'show' }, options: { notice: message }) }
- Exclude checks
Line is too long. [115/100] Open
Open
format.html { redirect_back_or_default(default: { action: 'show' }, options: { alert: result[:message] }) }
- Exclude checks