app/jobs/full_profile_awarding_job.rb
Complex method FullProfileAwardingJob#award_athletes (31.5) Open
Open
def award_athletes
athletes_dataset
.where.not(id: badge.trophies.select(:athlete_id))
.where.not(event_id: nil)
.distinct
- Read upRead up
- Exclude checks
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