RocketChat/Rocket.Chat

View on GitHub

Showing 3,299 of 8,337 total issues

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;
    Severity: Major
    Found in apps/meteor/ee/server/lib/ldap/copyCustomFieldsLDAP.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

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

        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

          Avoid too many return statements within this function.
          Open

                                  return API.v1.notFound(`No App found by the id of: ${this.urlParams.id}`);
          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 API.v1.failure(e.message);
              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 guestAgent;

                  Avoid too many return statements within this function.
                  Open

                                          return API.v1.success(result);
                  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.internalError('private_app_install_disabled');
                    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: 'app_user_error',
                                                  messages: [(aff.getAppUserError() as Record<string, any>).message],
                                                  payload: { username: (aff.getAppUserError() as Record<string, any>).username },
                                              });
                      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 message;

                            Avoid too many return statements within this function.
                            Open

                                return message;

                              Avoid too many return statements within this function.
                              Open

                                                          return API.v1.internalError();
                              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({
                                                            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({ error: 'Failed to get a file to install for the App. ' });
                                  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 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 message;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language