RocketChat/Rocket.Chat

View on GitHub

Showing 9,144 of 9,144 total issues

Avoid too many return statements within this function.
Open

        return false;
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 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.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 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 false;
          Severity: Major
          Found in apps/meteor/app/api/server/api.helpers.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                                return API.v1.success({
                                    integration,
                                });
            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.success({ rid });
              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 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 false;
                  Severity: Major
                  Found in apps/meteor/app/api/server/api.helpers.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.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 true;
                          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.failure('The tmid 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.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.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({
                                                  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 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 API.v1.success({ preview });
                                      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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language