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/client/sidebarv2/RoomList/SidebarItemTemplateWithData.tsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                        return showOmnichannel && omnichannel.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 `${lastMessage.u.name || lastMessage.u.username}: ${normalizeSidebarMessage(lastMessage, t)}`;
      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;
        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 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 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 t('Encrypted_messages_false');

                Avoid too many return statements within this function.
                Open

                            return <ReactiveUserStatus uid={uid} />;
                Severity: Major
                Found in apps/meteor/client/hooks/useRoomIcon.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                      return showOmnichannel && onHold.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 {
                                outBoundCallsAllowed: hasVoIPEnterpriseLicense, // set to true only if enterprise license is present.
                                outBoundCallsEnabled: hasVoIPEnterpriseLicense, // set to true even if enterprise license is not present.
                                outBoundCallsEnabledForUser:
                                    hasVoIPEnterpriseLicense && clientState === 'registered' && !['IN_CALL', 'ON_HOLD'].includes(voipClient.callerInfo.state), // set to true if the user has enterprise license, but is not able to make outbound calls. (busy, or disabled)
                    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 null;
                      Severity: Major
                      Found in apps/meteor/client/hooks/useRoomIcon.tsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return normalizeSidebarMessage(lastMessage, t);
                        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/client/sidebarv2/RoomList/SidebarItemTemplateWithData.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return {
                                            start: moment().subtract(1, 'month').startOf('month').toDate(),
                                            end: moment().subtract(1, 'month').endOf('month').toDate(),
                                        };
                            Severity: Major
                            Found in apps/meteor/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                  return state;
                              Severity: Major
                              Found in apps/meteor/client/views/audit/components/forms/DateRangePicker.tsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return {
                                                action: 'install',
                                                icon: 'warning',
                                                label: 'Install',
                                            };
                                Severity: Major
                                Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return {
                                                  action: 'purchase',
                                                  label: 'Buy',
                                                  icon: 'warning',
                                              };
                                  Severity: Major
                                  Found in apps/meteor/client/views/marketplace/helpers.ts - 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/composer/hooks/useComposerBoxPopup.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return;
                                      Severity: Major
                                      Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return {
                                                    action: 'install',
                                                    label: 'Install',
                                                };
                                        Severity: Major
                                        Found in apps/meteor/client/views/marketplace/helpers.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language