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.failure('The triggerId parameter when provided must be a string.');
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 preview item being executed is in the wrong format.');
    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(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 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({ extensions });
            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 null;
              Severity: Major
              Found in apps/meteor/app/utils/server/getUserNotificationPreference.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.success({ user });
                  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 false;
                    Severity: Major
                    Found in apps/meteor/app/reactions/client/init.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.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('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 url;
                            Severity: Major
                            Found in apps/meteor/app/utils/lib/getURL.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return {
                                                  totp: {
                                                      code,
                                                      login: settings.get('LDAP_Enable') ? objectToLDAPLogin : 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();
                                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({ team });
                                  Severity: Major
                                  Found in apps/meteor/app/api/server/v1/channels.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return true;
                                    Severity: Major
                                    Found in apps/meteor/app/2fa/server/code/index.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.failure();
                                        Severity: Major
                                        Found in apps/meteor/app/api/server/v1/settings.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language