extinctionrebellion/RebelsManager

View on GitHub
lib/tasks/rebels.rake

Summary

Maintainability
Test Coverage

Complex method namespace(rebels)::task#import (43.8)
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|
Severity: Minor
Found in lib/tasks/rebels.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