jcbantuelle/dominion-meteor

View on GitHub
app/cards/menagerie/ways/way_of_the_rat.js

Summary

Maintainability
A
1 hr
Test Coverage

Function play has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  play(game, player_cards, card_player) {
    let eligible_cards = _.filter(player_cards.hand, function(card) {
      return _.includes(_.words(card.types), 'treasure')
    })
    if (_.size(eligible_cards) > 0) {
Severity: Minor
Found in app/cards/menagerie/ways/way_of_the_rat.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status