elovation/elovation

View on GitHub

Showing 2 of 2 total issues

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

  def show
    players = Player.all.includes(ratings: :history_events).where(ratings: { game: @game })

    player_to_days = Hash.new
    every_day = Set.new
Severity: Minor
Found in app/controllers/games_controller.rb - About 1 hr to fix

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

      def self.create(game, params)
        result = game.results.build
    
        next_rank = Team::FIRST_PLACE_RANK
        teams = (params[:teams] || {}).values.each.with_object([]) do |team, acc|
    Severity: Minor
    Found in app/services/result_service.rb - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language