extinctionrebellion/RebelsManager

View on GitHub
lib/tasks/mailtrain.rake

Summary

Maintainability
Test Coverage

Complex method namespace(mailtrain)::task#update_subscriptions (92.3)
Open

  task update_subscriptions: :environment do
    Rebel.all
      .includes(:skills, :tags, :working_groups)
      .find_each do |rebel|
      MailtrainService.instance.add_subscription(
Severity: Minor
Found in lib/tasks/mailtrain.rake 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 namespace(mailtrain)::task#update_subscriptions_for_local_group (50.4)
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
Severity: Minor
Found in lib/tasks/mailtrain.rake 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 namespace(mailtrain)::task#update_subscriptions_for_main_list (45.7)
Open

  task update_subscriptions_for_main_list: :environment do
    Rebel.all
      .includes(:skills, :tags, :working_groups)
      .find_each do |rebel|
      MailtrainService.instance.add_subscription(
Severity: Minor
Found in lib/tasks/mailtrain.rake 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