TryGhost/Ghost

View on GitHub

Showing 1,756 of 3,886 total issues

Avoid too many return statements within this function.
Open

    return null;
Severity: Major
Found in ghost/core/core/frontend/meta/og-image.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                    return next();
    Severity: Major
    Found in ghost/core/core/frontend/services/routing/controllers/entry.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return null;
      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 (
                            <UserIcon style={Style.userIcon} />
                        );
        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 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 account is fully activated, you now have access to all content.')}
                            </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 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 {...bookmark, body, contentType};
                  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 renew on {{renewalDate}}`, {renewalDate: getDateString(currentPeriodEnd)})}</p>
                                </div>
                            );

                      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 (
                                <p>
                                    {status === 'success' ? t('Success') : t('Error')}
                                </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 (
                                  <div className='gh-portal-section'>
                                      <p className='gh-portal-text-center gh-portal-free-ctatext'>{t(`You currently have a free membership, upgrade to a paid subscription for full access.`)}</p>
                                      <SubscribeButton />
                                  </div>

                            Avoid too many return statements within this function.
                            Open

                                    return 'month';
                            Severity: Major
                            Found in apps/portal/src/components/common/ProductsSection.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                  return this.knownProvider(providerUrl);
                              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 (
                                            <p>
                                                {t('Could not update email! Invalid link.')}
                                            </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 (
                                              <p>
                                                  {t('Success! Check your email for magic link to sign-in.')}
                                              </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 (
                                                    <p>
                                                        {t('Plan upgrade 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 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 redirectToOriginal();
                                        Severity: Major
                                        Found in ghost/core/core/frontend/web/middleware/handle-image-sizes.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language