andrewhao/bookplanner

View on GitHub
lib/csp/iterative_relaxing_constraint_solver_strategy.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method generate_plan has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def generate_plan(template, bag_ids, student_ids, history_lookup, debug, solver, logger)
    plan = {}

    template_exclusion_bag_ids = template.values
    template_exclusion_bag_ids.inject(template.clone) do |temp_template, bag_id|
Severity: Minor
Found in lib/csp/iterative_relaxing_constraint_solver_strategy.rb - About 1 hr to fix

    Method generate_plan has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def generate_plan(template, bag_ids, student_ids, history_lookup, debug, solver, logger)
    Severity: Major
    Found in lib/csp/iterative_relaxing_constraint_solver_strategy.rb - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status