lib/tasks/mailtrain.rake
Complex method namespace(mailtrain)::task#update_subscriptions (92.3) Open
Open
task update_subscriptions: :environment do
Rebel.all
.includes(:skills, :tags, :working_groups)
.find_each do |rebel|
MailtrainService.instance.add_subscription(
- 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(mailtrain)::task#update_subscriptions_for_local_group (50.4) Open
Open
task :update_subscriptions_for_local_group, [:local_group_id] => :environment do |task, args|
local_group = LocalGroup.find(args.local_group_id)
if local_group.mailtrain_list_id.nil?
puts "MailTrain list ID is not set for this local group."
else
- 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(mailtrain)::task#update_subscriptions_for_main_list (45.7) Open
Open
task update_subscriptions_for_main_list: :environment do
Rebel.all
.includes(:skills, :tags, :working_groups)
.find_each do |rebel|
MailtrainService.instance.add_subscription(
- 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