RocketChat/Rocket.Chat

View on GitHub

Showing 3,450 of 9,093 total issues

Avoid too many return statements within this function.
Open

                    return API.v1.success();
Severity: Major
Found in apps/meteor/app/api/server/v1/settings.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                        return API.v1.unauthorized();
    Severity: Major
    Found in apps/meteor/app/api/server/v1/groups.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return API.v1.success({
                      _id: msg._id,
                      ts: Date.now().toString(),
                      message: msg,
                  });
      Severity: Major
      Found in apps/meteor/app/api/server/v1/chat.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

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

          Avoid too many return statements within this function.
          Open

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

            Avoid too many return statements within this function.
            Open

                        return API.v1.success({
                            url,
                            providerName: call.providerName,
                        });
            Severity: Major
            Found in apps/meteor/app/api/server/v1/videoConference.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

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

                Avoid too many return statements within this function.
                Open

                            return API.v1.success({ discussion });
                Severity: Major
                Found in apps/meteor/app/api/server/v1/rooms.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                  return API.v1.success({
                                      group: await composeRoomWithLastMessage(room, this.userId),
                                  });
                  Severity: Major
                  Found in apps/meteor/app/api/server/v1/groups.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                            return API.v1.failure();
                    Severity: Major
                    Found in apps/meteor/app/api/server/v1/settings.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return API.v1.success({ status: newStatus });
                      Severity: Major
                      Found in apps/meteor/app/livechat/server/api/v1/agent.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return API.v1.failure('The bodyParam "autoTranslate" must be a boolean.');
                        Severity: Major
                        Found in apps/meteor/app/api/server/v1/autotranslate.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return API.v1.success();
                          Severity: Major
                          Found in apps/meteor/app/api/server/v1/autotranslate.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return API.v1.failure('The bodyParam "autoTranslateLanguage" must be a string.');
                            Severity: Major
                            Found in apps/meteor/app/api/server/v1/autotranslate.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return API.v1.failure();
                              Severity: Major
                              Found in apps/meteor/app/api/server/v1/settings.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return params;
                                Severity: Major
                                Found in apps/meteor/app/livechat/server/hooks/processRoomAbandonment.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/hooks/leadCapture.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return API.v1.failure('Invalid file');
                                    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;
                                      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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language