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(null, profile, 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 {
                    messages: messages || [],
                    firstUnread,
                    unreadNotLoaded,
                };
    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 false;
        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 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 callback(new Error(statusValidateObj.message), 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 user;
                Severity: Major
                Found in apps/meteor/app/lib/server/functions/setUsername.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

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

                    Avoid too many return statements within this function.
                    Open

                                        return discussion.add(room);
                    Severity: Major
                    Found in apps/meteor/client/sidebarv2/hooks/useRoomList.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return (
                              (roomType === 'd' ||
                                  (!disableAllMessageNotifications && (hasMentionToAll || hasMentionToHere)) ||
                                  isHighlighted ||
                                  desktopNotifications === 'all' ||
                      Severity: Major
                      Found in apps/meteor/app/lib/server/functions/notifications/desktop.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return;
                        Severity: Major
                        Found in apps/meteor/client/providers/CallProvider/CallProvider.tsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                              return team.add(room);
                          Severity: Major
                          Found in apps/meteor/client/sidebarv2/hooks/useRoomList.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return true;
                            Severity: Major
                            Found in apps/meteor/client/sidebarv2/RoomList/SidebarItemTemplateWithData.tsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

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

                                    Avoid too many return statements within this function.
                                    Open

                                        return false;
                                    Severity: Major
                                    Found in apps/meteor/client/meteorOverrides/ddpOverREST.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return false;
                                      Severity: Major
                                      Found in apps/meteor/client/sidebarv2/RoomList/SidebarItemTemplateWithData.tsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return { name: 'at' };
                                        Severity: Major
                                        Found in apps/meteor/client/hooks/useRoomIcon.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language