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.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 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 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 defaultAgent;

            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;
              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 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 API.v1.success({ app: 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.success({
                                            app: formatAppInstanceForRest(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 guestAgent;

                        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 API.v1.failure({ error: 'Invalid purchase type' });
                            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 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 handleError('Unable to access Marketplace. Does the server has access to the internet?', e);
                                  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 false;
                                    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({ 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language