TryGhost/Ghost

View on GitHub

Showing 1,756 of 3,886 total issues

Avoid too many return statements within this function.
Open

                return (
                    <img style={{width: '26px', height: '26px'}} src={buttonIcon} alt="" />
                );
Severity: Major
Found in apps/portal/src/components/TriggerButton.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return (
                <p>
                    {t('Plan checkout was cancelled.')}
                </p>
            );
    Severity: Major
    Found in apps/portal/src/components/Notification.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                      return this.unknownProvider(url);
      Severity: Major
      Found in ghost/oembed-service/lib/OEmbedService.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return data;
        Severity: Major
        Found in ghost/oembed-service/lib/OEmbedService.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return false;
          Severity: Major
          Found in apps/portal/src/utils/helpers.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return (
                        <p>
                            {t('Signup error: Invalid link')}<br /><a href={singupPortalLink} target="_parent">{t('Click here to retry')}</a>
                        </p>
                    );
            Severity: Major
            Found in apps/portal/src/components/Notification.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return redirectToOriginal();
              Severity: Major
              Found in ghost/core/core/frontend/web/middleware/handle-image-sizes.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return (
                            <p>
                                {t('Success! Your email is updated.')}
                            </p>
                        );
                Severity: Major
                Found in apps/portal/src/components/Notification.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                  return oembed;
                  Severity: Major
                  Found in ghost/oembed-service/lib/OEmbedService.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return (
                                    <div className='gh-portal-section'>
                                        <p className='gh-portal-text-center gh-portal-free-ctatext'>{t(`Your subscription will start on {{subscriptionStart}}`, {subscriptionStart: trialEnd})}</p>
                                    </div>
                                );

                      Avoid too many return statements within this function.
                      Open

                                  return {
                                      page: 'signup',
                                      pageQuery: 'yearly'
                                  };
                      Severity: Major
                      Found in apps/portal/src/App.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return {
                                        page: 'supportSuccess'
                                    };
                        Severity: Major
                        Found in apps/portal/src/App.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return {
                                  action: 'updateProfile:success',
                                  page: 'accountHome',
                                  popupNotification: createPopupNotification({
                                      type: 'updateProfile:success', autoHide: true, closeable: true, status: 'success', state,
                          Severity: Major
                          Found in apps/portal/src/actions.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return {
                                            page: 'signin'
                                        };
                            Severity: Major
                            Found in apps/portal/src/App.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return defaultEmailRecipients;

                                Avoid too many return statements within this function.
                                Open

                                            return {
                                                page: 'support'
                                            };
                                Severity: Major
                                Found in apps/portal/src/App.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return;
                                  Severity: Major
                                  Found in ghost/ghost/src/nestjs/interceptors/location-header.interceptor.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return {
                                                    page: 'signup',
                                                    pageQuery: pageQuery
                                                };
                                    Severity: Major
                                    Found in apps/portal/src/App.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return {
                                                      page: 'accountHome'
                                                  };
                                      Severity: Major
                                      Found in apps/portal/src/App.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return {
                                                        page: 'recommendations',
                                                        pageData: {
                                                            signup: false
                                                        }
                                        Severity: Major
                                        Found in apps/portal/src/App.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language