pupilfirst/pupilfirst

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

Summary

Maintainability
B
4 hrs
Test Coverage
B
85%

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

  class LeaderboardPresenter < ApplicationPresenter
    class Student < SimpleDelegator
      attr_reader :score, :rank
      attr_accessor :delta

Severity: Minor
Found in app/presenters/courses/leaderboard_presenter.rb - About 2 hrs to fix

    Method rank_change_icon has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def rank_change_icon(delta)
          if delta >= 10
            view.image_tag(
              "courses/leaderboard/rank-change-up-double.svg",
              alt:
    Severity: Minor
    Found in app/presenters/courses/leaderboard_presenter.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status