bastienrobert/la-ferme

View on GitHub
packages/server/app/graphql/resolvers/round.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function setCardRound has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async setCardRound(_, { playerUUID, choice, targets }) {
      const { game, player, players, lastRound } = await getPlayerData(
        playerUUID
      )

Severity: Minor
Found in packages/server/app/graphql/resolvers/round.ts - About 1 hr to fix

    Function readyForRound has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        async readyForRound(_, { playerUUID }) {
          const player = await Player.findByUUID(playerUUID, {
            withRelated: [
              'user',
              'game',
    Severity: Minor
    Found in packages/server/app/graphql/resolvers/round.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status