jcbantuelle/dominion-meteor

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

Summary

Maintainability
A
1 hr
Test Coverage

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

  duration(game, player_cards, mastermind) {
    game.log.push(`<strong>${player_cards.username}</strong> resolves ${CardView.render(mastermind)}`)
    let eligible_cards = _.filter(player_cards.hand, (card) => {
      return _.includes(_.words(card.types), 'action')
    })
Severity: Minor
Found in app/cards/menagerie/mastermind.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status