hacken-in/hacken-in

View on GitHub
app/controllers/authorizations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method AuthorizationsController#destroy (20.7)
Open

  def destroy
    @auth = current_user.authorizations.find_by_id(params[:id])
    if (current_user.needs_one_authorization?)
      redirect_to edit_user_registration_path, notice: t('registrations.oauth.only_one_no_password')
    else

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status