drinkingvideogames/mixer

View on GitHub
src/components/drinking-game.jsx

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 3 of 3 total issues

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

render () {
const game = this.props.games.toJS().find((game) => game.url === this.props.routeParams.game)
const drinkingGame = this.props.drinkingGames.toJS().find((game) => game.url === this.props.routeParams.drinkingGame)
 
if (game && drinkingGame) {
Severity: Minor
Found in src/components/drinking-game.jsx - About 1 hr to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const drinkingGame = this.props.drinkingGames.toJS().find((game) => game.url === this.props.routeParams.drinkingGame)
    Severity: Minor
    Found in src/components/drinking-game.jsx and 1 other location - About 55 mins to fix
    src/components/drinking-game.jsx on lines 7..7

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const game = this.props.games.toJS().find((game) => game.url === this.props.routeParams.game)
    Severity: Minor
    Found in src/components/drinking-game.jsx and 1 other location - About 55 mins to fix
    src/components/drinking-game.jsx on lines 8..8

    There are no issues that match your filters.

    Category
    Status