HabitRPG/habitrpg

View on GitHub

Showing 688 of 3,401 total issues

Avoid too many return statements within this function.
Open

          return next({
            name: 'guild',
            params: { groupId: group._id },
          });
Severity: Major
Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return next({ name: 'tasks' });
    Severity: Major
    Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return filteredDates;
      Severity: Major
      Found in website/common/script/cron.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return schedule.matches(startOfDayWithCDSTime);
        Severity: Major
        Found in website/common/script/cron.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                    return next({
                      name: 'groupPlanDetailTaskInformation',
                      params: { groupId: newGroup._id },
                    });
          Severity: Major
          Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return schedule.matches(startOfDayWithCDSTime) && matchEveryX;
            Severity: Major
            Found in website/common/script/cron.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return next({ name: 'tasks' });
              Severity: Major
              Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                          return next({ name: 'userProfile', params: { userId: gift.uuid } });
                Severity: Major
                Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                            return next({ name: 'tasks', query: { openGemsModal: true } });
                  Severity: Major
                  Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return next({
                                  name: 'party',
                                });
                    Severity: Major
                    Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return { items, paths, set };
                      Severity: Major
                      Found in website/common/script/ops/unlock.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return filteredDates;
                        Severity: Major
                        Found in website/common/script/cron.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return 'neutral';
                          Severity: Major
                          Found in website/client/src/store/getters/tasks.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return { items, paths, set };
                            Severity: Major
                            Found in website/common/script/ops/unlock.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return 'better';
                              Severity: Major
                              Found in website/client/src/store/getters/tasks.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  return 'best';
                                Severity: Major
                                Found in website/client/src/store/getters/tasks.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return next({ name: 'groupPlan' });
                                  Severity: Major
                                  Found in website/client/src/router/handleRedirect.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return schedule.matches(startOfDayWithCDSTime);
                                    Severity: Major
                                    Found in website/common/script/cron.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          if (daysOfTheWeek.length === 0) return false;
                                      Severity: Major
                                      Found in website/common/script/cron.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return sortedDates;
                                        Severity: Major
                                        Found in website/common/script/cron.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language