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();
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: agent.statusLivechat });
    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.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.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.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 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 API.v1.failure('error-business-hours-are-closed');
                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.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 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 options;
                        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 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.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.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 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 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({ 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 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.failure('Invalid file');
                                        Severity: Major
                                        Found in apps/meteor/app/livechat/imports/server/rest/upload.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language