concord-consortium/lara

View on GitHub
lib/class_info_import_helper.rb

Summary

Maintainability
A
1 hr
Test Coverage
F
32%

Method update_runs_from_csv_line has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.update_runs_from_csv_line(import_line)
    remote_endpoint = remote_endpoint_path_for(import_line)
    clazz_id, class_hash, learner_id, learner_key, user_id, resource_link_id = import_line.strip.split(",")
    updated_run_count = 0
    info_url = class_info_url_path(clazz_id)
Severity: Minor
Found in lib/class_info_import_helper.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status