lib/tasks/support/update_library_types.rake
Complex method namespace(support)::task#update_library_types (95.7) Open
Open
task :update_library_types, %i[batch_id library_type_name] => [:environment] do |_task, args|
puts('*' * 80)
puts('TASK STARTING')
puts('*' * 80)
start = Time.zone.now
- 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
Complex method namespace#print_summary (25.0) Open
Open
def print_summary(batch_id, lanes, record_count, elapsed) # rubocop:todo Metrics/AbcSize
puts('*' * 80)
puts('TASK COMPLETE')
puts('*' * 80)
puts("Batch ID: #{batch_id}")
- 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