rokumatsumoto/boyutluseyler

View on GitHub
app/controllers/profiles_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for update is too high. [<2, 17, 3> 17.38/15]
Open

  def update
    respond_to do |format|
      result = Users::UpdateService.new(current_user, user_params.merge(user: @user)).execute

      if result[:status] == :success

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

        format.html { redirect_back_or_default(default: { action: 'show' }, options: { notice: message }) }

Line is too long. [115/100]
Open

        format.html { redirect_back_or_default(default: { action: 'show' }, options: { alert: result[:message] }) }

There are no issues that match your filters.

Category
Status