pupilfirst/pupilfirst

View on GitHub
app/presenters/organisations/student_presenter.rb

Summary

Maintainability
B
4 hrs
Test Coverage
A
97%

Class StudentPresenter has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

  class StudentPresenter < ApplicationPresenter
    def initialize(view_context, student)
      @student = student
      super(view_context)
    end
Severity: Minor
Found in app/presenters/organisations/student_presenter.rb - About 2 hrs to fix

    Method average_grades has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def average_grades
          @average_grades ||=
            begin
              averaged =
                TimelineEventGrade
    Severity: Minor
    Found in app/presenters/organisations/student_presenter.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status