extinctionrebellion/RebelsManager

View on GitHub
app/jobs/mailtrain/add_subscriptions_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
54%

Complex method Mailtrain::AddSubscriptionsJob#subscribe_to_rebels_list (32.2)
Open

  def subscribe_to_rebels_list(rebel)
    MailtrainService.instance.add_subscription(
      ENV['MAILTRAIN_REBELS_LIST_ID'],
      {
        "EMAIL": rebel.email,

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 Mailtrain::AddSubscriptionsJob#subscribe_to_rebels_local_list (29.2)
Open

  def subscribe_to_rebels_local_list(rebel)
    return if rebel.local_group&.mailtrain_list_id.nil?
    MailtrainService.instance.add_subscription(
      rebel.local_group.mailtrain_list_id,
      {

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