jcbantuelle/dominion-meteor

View on GitHub
app/game/server/services/player_action_undoer.js

Summary

Maintainability
A
1 hr
Test Coverage

Function undo_action has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static undo_action(game, player_cards) {
    game.log.push(`<strong>${player_cards.username}</strong> requests to undo their last action`)
    GameModel.update(game._id, game)
    let ordered_player_cards = TurnOrderedPlayerCardsQuery.turn_ordered_player_cards(game, player_cards)
    ordered_player_cards.shift()
Severity: Minor
Found in app/game/server/services/player_action_undoer.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status