RocketChat/Rocket.Chat

View on GitHub

Showing 9,144 of 9,144 total issues

Avoid too many return statements within this function.
Open

        return callback(null, inResponseTo);

    Avoid too many return statements within this function.
    Open

        return {
            ...options,
            emailTranscript: {
                sendToVisitor: true,
                requestData: {
    Severity: Major
    Found in apps/meteor/app/livechat/server/lib/parseTranscriptRequest.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return API.v1.success(await sendFileLivechatMessage({ roomId: this.urlParams.rid, visitorToken, file: uploadedFile, msgData: fields }));
      Severity: Major
      Found in apps/meteor/app/livechat/imports/server/rest/upload.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return true;
        Severity: Major
        Found in apps/meteor/app/authentication/server/lib/restrictLoginAttempts.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return false;
          Severity: Major
          Found in apps/meteor/app/authentication/server/lib/restrictLoginAttempts.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return;
            Severity: Major
            Found in apps/meteor/app/file-upload/server/lib/proxy.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return;
              Severity: Major
              Found in apps/meteor/app/file-upload/server/lib/proxy.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return;
                Severity: Major
                Found in apps/meteor/app/file-upload/server/config/GridFS.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return;
                  Severity: Major
                  Found in apps/meteor/app/livechat/server/lib/Helper.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return;
                    Severity: Major
                    Found in apps/meteor/app/ui-master/server/inject.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return API.v1.failure({
                                      reason: 'error-type-not-allowed',
                                  });
                      Severity: Major
                      Found in apps/meteor/app/livechat/imports/server/rest/upload.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return parsedValue;
                        Severity: Major
                        Found in apps/meteor/app/livechat/imports/server/rest/appearance.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return next();
                          Severity: Major
                          Found in apps/meteor/app/file-upload/server/lib/proxy.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return true;
                            Severity: Major
                            Found in apps/meteor/app/livechat/server/lib/Helper.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return SMSService.error(e);
                              Severity: Major
                              Found in apps/meteor/app/livechat/imports/server/rest/sms.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                        return;
                                Severity: Major
                                Found in apps/meteor/app/e2e/client/rocketchat.e2e.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return false;
                                  Severity: Major
                                  Found in apps/meteor/app/authentication/server/lib/restrictLoginAttempts.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return true;
                                    Severity: Major
                                    Found in apps/meteor/app/livechat/server/lib/Helper.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                      return this.error('Error providing group key to users: ', error);
                                      Severity: Major
                                      Found in apps/meteor/app/e2e/client/rocketchat.e2e.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return API.v1.failure({
                                                        reason: 'error-size-not-allowed',
                                                        sizeAllowed: filesize(maxFileSize),
                                                    });
                                        Severity: Major
                                        Found in apps/meteor/app/livechat/imports/server/rest/upload.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language