jcbantuelle/dominion-meteor

View on GitHub
app/cards/menagerie/scrap.js

Summary

Maintainability
A
1 hr
Test Coverage

Function trash_card has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static trash_card(game, player_cards, selected_cards, card_player) {
    let number_of_options = CostCalculator.calculate(game, selected_cards[0])
    number_of_options = Math.min(6, number_of_options)

    let card_trasher = new CardTrasher(game, player_cards, 'hand', selected_cards[0])
Severity: Minor
Found in app/cards/menagerie/scrap.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status