lib/tasks/rebels.rake
Complex method namespace(rebels)::task#import (43.8) Open
Open
task import: :environment do
CSV.foreach(Rails.root.join("rebels.csv"), headers: false) do |row|
email = row[1]
begin
rebel = Rebel.find_or_create_by(email: email) do |rebel|
- 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