hexlet-codebattle/codebattle

View on GitHub

Showing 670 of 670 total issues

Avoid too many return statements within this function.
Open

    return (
      <>
        <FontAwesomeIcon icon="users" />
        vs
        <FontAwesomeIcon icon="users" />

    Avoid too many return statements within this function.
    Open

          return isArray(value) && !value.some(item => !isValidValueToSignature(item, signature.nested));

      Avoid too many return statements within this function.
      Open

          return { ...acc, chat: newChatState, records: [...records, newRecord] };
      Severity: Major
      Found in services/app/apps/codebattle/assets/js/widgets/lib/player.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return 'Round 1';

          Avoid too many return statements within this function.
          Open

              return (
                <FontAwesomeIcon icon="wine-bottle" />
              );

            Avoid too many return statements within this function.
            Open

                return 'Task Builder';

              Avoid too many return statements within this function.
              Open

                return { state: 'online' };
              Severity: Major
              Found in services/app/apps/codebattle/assets/js/widgets/middlewares/Main.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return { ...acc, players: newPlayers, records: [...records, newRecord] };
                Severity: Major
                Found in services/app/apps/codebattle/assets/js/widgets/lib/player.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return null;

                    Avoid too many return statements within this function.
                    Open

                          return isBoolean(value);

                      Avoid too many return statements within this function.
                      Open

                          return 'Task Testing';

                        Avoid too many return statements within this function.
                        Open

                                return [false, 'Doesn\'t match with signature'];

                          Avoid too many return statements within this function.
                          Open

                              return { ...acc, players: newPlayers, records: [...records, newRecord] };
                          Severity: Major
                          Found in services/app/apps/codebattle/assets/js/widgets/lib/player.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return null;
                            Severity: Major
                            Found in services/app/apps/codebattle/assets/js/widgets/pages/game/GameResult.jsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return 0;

                                Avoid too many return statements within this function.
                                Open

                                    return (
                                      <>
                                        <FontAwesomeIcon icon="user" />
                                        <FontAwesomeIcon icon="sort-amount-up" />
                                      </>

                                  Avoid too many return statements within this function.
                                  Open

                                        return [false, 'Not valid arguments'];

                                    Avoid too many return statements within this function.
                                    Open

                                          return 'Task Is Invalid';

                                      Avoid too many return statements within this function.
                                      Open

                                              return 'Round 2';

                                        Avoid too many return statements within this function.
                                        Open

                                              return false;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language