vol1ura/Sat_9am_5km

View on GitHub
app/admin/results.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Complex method index(download_links)::column#athlete (21.4)
Open

    column :athlete do |r|
      if r.athlete
        external_link_to r.athlete.name.presence || t('common.without_name'), admin_athlete_path(r.athlete)
      else
        external_link_to t('common.without_token'), new_admin_athlete_path(result_id: r.id)
Severity: Minor
Found in app/admin/results.rb by flog

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

Complex method member_action#insert_above (21.3)
Open

  member_action :insert_above, method: :post, if: proc { can? :manage, Result } do
    resource.insert_new_result_above!
    redirect_to collection_path, notice: t('active_admin.results.result_successfully_appended', position: resource.position)
  rescue StandardError => e
    Rollbar.error e
Severity: Minor
Found in app/admin/results.rb by flog

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