RocketChat/Rocket.Chat

View on GitHub

Showing 9,144 of 9,144 total issues

Avoid too many return statements within this function.
Open

            return callback(new Error(`Status is: ${statusValidateObj.statusCode}`), null, false);
Severity: Major
Found in apps/meteor/app/meteor-accounts-saml/server/lib/parsers/Response.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

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

      Avoid too many return statements within this function.
      Open

              return {
                  messages: messages || [],
              };
      Severity: Major
      Found in apps/meteor/app/lib/server/methods/getChannelHistory.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

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

          Avoid too many return statements within this function.
          Open

              return sendMessage(user, message, roomInfo);
          Severity: Major
          Found in apps/meteor/app/lib/server/lib/processDirectEmail.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

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

              Avoid too many return statements within this function.
              Open

                  return room;

                Avoid too many return statements within this function.
                Open

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

                  Avoid too many return statements within this function.
                  Open

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

                    Avoid too many return statements within this function.
                    Open

                        return true;
                    Severity: Major
                    Found in apps/meteor/app/lib/server/functions/saveUserIdentity.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return makeError(message);
                      Severity: Major
                      Found in apps/meteor/app/meteor-accounts-saml/server/loginHandler.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

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

                          Avoid too many return statements within this function.
                          Open

                                          return callback(e instanceof Error ? e : String(e), null, false);
                          Severity: Major
                          Found in apps/meteor/app/meteor-accounts-saml/server/lib/parsers/Response.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return callback(e instanceof Error ? e : String(e), null, false);
                            Severity: Major
                            Found in apps/meteor/app/meteor-accounts-saml/server/lib/parsers/Response.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

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

                                Avoid too many return statements within this function.
                                Open

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

                                  Avoid too many return statements within this function.
                                  Open

                                                  return callback(new Error('Missing StatusCode'), null, false);
                                  Severity: Major
                                  Found in apps/meteor/app/meteor-accounts-saml/server/lib/parsers/Response.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return true;
                                    Severity: Major
                                    Found in apps/meteor/app/meteor-accounts-saml/server/lib/parsers/Response.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return callback(e instanceof Error ? e : String(e), null, false);
                                      Severity: Major
                                      Found in apps/meteor/app/meteor-accounts-saml/server/lib/parsers/Response.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return;
                                        Severity: Major
                                        Found in apps/meteor/app/lib/server/lib/processDirectEmail.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language