RocketChat/Rocket.Chat

View on GitHub

Showing 3,299 of 8,337 total issues

Avoid too many return statements within this function.
Open

            return true;
Severity: Major
Found in apps/meteor/ee/server/lib/ldap/Manager.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return message;

      Avoid too many return statements within this function.
      Open

                              return API.v1.failure({ status: 'storage_error', messages: [aff.getStorageError()] });
      Severity: Major
      Found in apps/meteor/ee/server/apps/communication/rest.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                            return API.v1.success({
                                app: info,
                                implemented: aff.getImplementedInferfaces(),
                                licenseValidation: aff.getLicenseValidationResult(),
                            });
        Severity: Major
        Found in apps/meteor/ee/server/apps/communication/rest.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return lastRoomAgent ?? defaultAgent;

            Avoid too many return statements within this function.
            Open

                        return inquiry;
            Severity: Major
            Found in apps/meteor/ee/app/livechat-enterprise/server/hooks/beforeRoutingChat.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return LivechatInquiry.findOneById(_id);
              Severity: Major
              Found in apps/meteor/ee/app/livechat-enterprise/server/hooks/beforeRoutingChat.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/ee/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return {
                                  start: moment().subtract(1, 'month').startOf('month').toDate(),
                                  end: moment().subtract(1, 'month').endOf('month').toDate(),
                              };
                  Severity: Major
                  Found in apps/meteor/ee/client/views/audit/components/forms/DateRangePicker.tsx - 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/ee/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return affectedUsers.map(({ _id }) => _id);
                      Severity: Major
                      Found in ee/packages/presence/src/Presence.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

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

                          Avoid too many return statements within this function.
                          Open

                              return currentOnHoldTime;

                            Avoid too many return statements within this function.
                            Open

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

                              Avoid too many return statements within this function.
                              Open

                                  return 'no-role';
                              Severity: Major
                              Found in apps/meteor/lib/roles/getMostImportantRole.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                    return;
                                Severity: Major
                                Found in ee/apps/ddp-streamer/src/Client.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return record.value;
                                  Severity: Major
                                  Found in apps/meteor/ee/app/settings/server/settings.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                        return this.ws.close(WS_ERRORS.CLOSE_PROTOCOL_ERROR);
                                    Severity: Major
                                    Found in ee/apps/ddp-streamer/src/Client.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

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

                                        Avoid too many return statements within this function.
                                        Open

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