RocketChat/Rocket.Chat

View on GitHub

Showing 3,299 of 8,337 total issues

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

        Avoid too many return statements within this function.
        Open

                    return defaultAgent;

          Avoid too many return statements within this function.
          Open

              return { ...room, chatQueued: true } as IOmnichannelRoom & { chatQueued: boolean };

            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 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 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;
                  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 normalizeQueueInfo(inq);
                    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.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({ 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 defaultAgent;

                            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({
                                                          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 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.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 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 true;
                                      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 message;
                                        Severity: Major
                                        Found in apps/meteor/ee/app/livechat-enterprise/server/hooks/resumeOnHold.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language