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('invalid-room');
Severity: Major
Found in apps/meteor/app/api/server/v1/voip/rooms.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                        return API.v1.failure(e);
    Severity: Major
    Found in apps/meteor/app/api/server/v1/users.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/teams.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

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

          Avoid too many return statements within this function.
          Open

                          return API.v1.failure('The command provided does not exist (or is disabled).');
          Severity: Major
          Found in apps/meteor/app/api/server/v1/commands.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

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

              Avoid too many return statements within this function.
              Open

                          return API.v1.success({
                              permissions: result,
                          });
              Severity: Major
              Found in apps/meteor/app/api/server/v1/permissions.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/commands.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return verifyQuery(value, allowedAttributes, allowedOperations, path);
                  Severity: Major
                  Found in apps/meteor/app/api/server/lib/isValidQuery.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

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

                      Avoid too many return statements within this function.
                      Open

                                      return API.v1.failure('The command provided does not exist (or is disabled).');
                      Severity: Major
                      Found in apps/meteor/app/api/server/v1/commands.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/commands.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

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

                            Avoid too many return statements within this function.
                            Open

                                            return API.v1.failure(`extension already in use ${extension}`);
                            Severity: Major
                            Found in apps/meteor/app/api/server/v1/voip/omnichannel.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

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

                                Avoid too many return statements within this function.
                                Open

                                                    return API.v1.failure('Invalid thread.');
                                Severity: Major
                                Found in apps/meteor/app/api/server/v1/commands.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 forwardedFor[forwardedFor.length - httpForwardedCount];
                                    Severity: Major
                                    Found in apps/meteor/app/api/server/api.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                      return API.v1.success(
                                                          await LivechatVoip.getNewRoom(guest, agent, rid, direction, {
                                                              projection: API.v1.defaultFieldsToExclude,
                                                          }),
                                                      );
                                      Severity: Major
                                      Found in apps/meteor/app/api/server/v1/voip/rooms.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language