RocketChat/Rocket.Chat

View on GitHub

Showing 9,144 of 9,144 total issues

Avoid too many return statements within this function.
Open

        return <ComposerArchived />;
Severity: Major
Found in apps/meteor/client/views/room/composer/ComposerContainer.tsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return <ComposerOmnichannelJoin />;

      Avoid too many return statements within this function.
      Open

              return <ComposerReadOnly />;
      Severity: Major
      Found in apps/meteor/client/views/room/composer/ComposerContainer.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return <ComposerMessage {...props} />;

          Avoid too many return statements within this function.
          Open

                          return attachment.title;
          Severity: Major
          Found in apps/meteor/client/views/room/MessageList/hooks/useMessageBody.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return <ComposerBlocked />;
            Severity: Major
            Found in apps/meteor/client/views/room/composer/ComposerContainer.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return true;
              Severity: Major
              Found in apps/meteor/client/views/room/modals/FileUploadModal/FilePreview.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return 'card';
                Severity: Major
                Found in apps/meteor/client/views/marketplace/hooks/useAppMenu.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return differenceInSeconds(current.ts, previous.ts) < groupingRange && !isMessageNewDay(current, previous);

                    Avoid too many return statements within this function.
                    Open

                            return false;

                      Avoid too many return statements within this function.
                      Open

                              return t('Your_invite_link_will_never_expire');

                        Avoid too many return statements within this function.
                        Open

                            return undefined;

                          Avoid too many return statements within this function.
                          Open

                              return <Icon {...iconPropsOrReactNode} size={size} />;
                          Severity: Major
                          Found in apps/meteor/client/components/RoomIcon/RoomIcon.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return;
                            Severity: Major
                            Found in apps/meteor/client/methods/updateMessage.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return;

                                Avoid too many return statements within this function.
                                Open

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

                                  Avoid too many return statements within this function.
                                  Open

                                                  if (!mid) return;

                                    Avoid too many return statements within this function.
                                    Open

                                                        return { ...message, msg: otrAck };
                                    Severity: Major
                                    Found in apps/meteor/client/startup/otr.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return c.stop();
                                      Severity: Major
                                      Found in apps/meteor/client/startup/rootUrlChange.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return displayingUserRoomRoles.includes('owner') ? myself : true;
                                        Severity: Major
                                        Found in apps/meteor/client/lib/federation/Federation.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language