RocketChat/Rocket.Chat

View on GitHub

Showing 9,144 of 9,144 total issues

Avoid too many return statements within this function.
Open

                    return API.v1.success({ status: result.getStatus() });
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 message;
    Severity: Major
    Found in apps/meteor/ee/server/hooks/messages/BeforeSaveCannedResponse.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                              return API.v1.success({
                                  url: `${baseUrl}/apps/${this.queryParams.appId}/${
                                      this.queryParams.purchaseType === 'buy' ? this.queryParams.purchaseType : subscribeRoute
                                  }?workspaceId=${workspaceId}&token=${token.token}&seats=${seats}`,
                              });
      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.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;
          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 defaultAgent;

              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 API.v1.failure({ error: 'Unauthorized' });
                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({ apps });
                  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 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 { ...state };
                      Severity: Major
                      Found in apps/uikit-playground/src/Context/reducer.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 user;
                          Severity: Major
                          Found in apps/meteor/ee/app/livechat-enterprise/server/hooks/beforeJoinRoom.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return { ...state };
                            Severity: Major
                            Found in apps/uikit-playground/src/Context/reducer.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return {
                                      ...state,
                                      projects: {
                                        ...state.projects,
                                        [activeProjectId]: {
                              Severity: Major
                              Found in apps/uikit-playground/src/Context/reducer.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

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

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          ...state,
                                          screens: {
                                            ...state.screens,
                                            [id]: {
                                  Severity: Major
                                  Found in apps/uikit-playground/src/Context/reducer.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return {
                                            ...state,
                                            activeProject: '',
                                            activeScreen: '',
                                          };
                                    Severity: Major
                                    Found in apps/uikit-playground/src/Context/reducer.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 null;
                                        Severity: Major
                                        Found in apps/meteor/ee/app/livechat-enterprise/server/lib/Helper.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language