vol1ura/Sat_9am_5km

View on GitHub
app/admin/volunteers.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Complex method index#download_links (126.6)
Open

  index download_links: [:csv], title: -> { t '.title', date: l(@activity.date) } do
    selectable_column
    column :athlete
    column(:role) { |v| human_volunteer_role v.role }
    column :comment
Severity: Minor
Found in app/admin/volunteers.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 main#scoped_collection (20.0)
Open

    def scoped_collection
      if current_user.admin?
        end_of_association_chain
      else
        event_ids = current_user.permissions.where(subject_class: 'Volunteer').pluck(:event_id).compact
Severity: Minor
Found in app/admin/volunteers.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