pupilfirst/pupilfirst

View on GitHub
app/presenters/courses/curriculum_presenter.rb

Summary

Maintainability
B
6 hrs
Test Coverage
A
100%

Class CurriculumPresenter has 24 methods (exceeds 20 allowed). Consider refactoring.
Open

  class CurriculumPresenter < ApplicationPresenter
    def initialize(view_context, course)
      @course = course
      super(view_context)
    end
Severity: Minor
Found in app/presenters/courses/curriculum_presenter.rb - About 2 hrs to fix

    File curriculum_presenter.rb has 271 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    module Courses
      class CurriculumPresenter < ApplicationPresenter
        def initialize(view_context, course)
          @course = course
          super(view_context)
    Severity: Minor
    Found in app/presenters/courses/curriculum_presenter.rb - About 2 hrs to fix

      Method targets has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def targets
            attributes = %w[id title target_group_id sort_index]
      
            scope =
              @course
      Severity: Minor
      Found in app/presenters/courses/curriculum_presenter.rb - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status