RocketChat/Rocket.Chat

View on GitHub

Showing 9,144 of 9,144 total issues

Avoid too many return statements within this function.
Open

    return differenceInSeconds(current.ts, previous.ts) < groupingRange && !isMessageNewDay(current, previous);
Severity: Major
Found in apps/meteor/client/views/room/MessageList/lib/isMessageSequential.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return {
                    action: 'purchase',
                    label: 'See Pricing',
                };
    Severity: Major
    Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return {
                  action: 'purchase',
                  label: 'Buy',
              };
      Severity: Major
      Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                            return state;
        Severity: Major
        Found in apps/meteor/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return false;
          Severity: Major
          Found in apps/meteor/client/views/room/MessageList/lib/isMessageSequential.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return {
                            action: 'purchase',
                            label: 'Subscribe',
                        };
            Severity: Major
            Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return {
                          action: 'purchase',
                          label: 'Install',
                          icon: 'warning',
                      };
              Severity: Major
              Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return {
                                start: moment().startOf('month').toDate(),
                                end: moment().endOf('day').toDate(),
                            };
                Severity: Major
                Found in apps/meteor/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return false;
                  Severity: Major
                  Found in apps/meteor/client/views/room/MessageList/lib/isMessageSequential.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return { ...state, end: parseFromEndDateInput(action.newEnd) };
                    Severity: Major
                    Found in apps/meteor/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                      return;

                        Avoid too many return statements within this function.
                        Open

                                        return { ...state, start: parseFromStartDateInput(action.newStart) };
                        Severity: Major
                        Found in apps/meteor/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return false;
                          Severity: Major
                          Found in apps/meteor/client/views/room/MessageList/lib/isMessageSequential.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return false;

                              Avoid too many return statements within this function.
                              Open

                                          return {
                                              action: 'purchase',
                                              label: 'Subscribe',
                                              icon: 'warning',
                                          };
                              Severity: Major
                              Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return {
                                            action: 'purchase',
                                            label: 'Try now',
                                        };
                                Severity: Major
                                Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return {
                                                  label: 'Requested',
                                              };
                                  Severity: Major
                                  Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return -Infinity;
                                    Severity: Major
                                    Found in apps/meteor/client/views/room/hooks/useRetentionPolicy.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return media === 'audio' ? t('Audio_message') : t('Video_message');

                                        Avoid too many return statements within this function.
                                        Open

                                                return {
                                                    label: appRequestStats.totalSeen > 1 ? 'requests' : 'request',
                                                };
                                        Severity: Major
                                        Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language