TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 total issues

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 urlUtils.redirect301(res, routerManager.getUrlByResourceId(post.id, {withSubdirectory: true}));
    Severity: Major
    Found in ghost/core/core/frontend/services/routing/controllers/previews.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                          return;
      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('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 '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 renderer.renderEntry(req, res)(post);
            Severity: Major
            Found in ghost/core/core/frontend/services/routing/controllers/previews.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 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 urlUtils.redirect301(res, routerManager.getUrlByResourceId(post.id, {withSubdirectory: true}));
                  Severity: Major
                  Found in ghost/core/core/frontend/services/routing/controllers/email-post.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return urlUtils.redirect301(res, urlUtils.urlJoin('/email', post.uuid, '/'));
                    Severity: Major
                    Found in ghost/core/core/frontend/services/routing/controllers/previews.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

                          Avoid too many return statements within this function.
                          Open

                                      return renderer.renderEntry(req, res)(post);
                          Severity: Major
                          Found in ghost/core/core/frontend/services/routing/controllers/email-post.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return urlUtils.redirect301(res, url.format({
                                                pathname: url.parse(entry.url).pathname,
                                                search: url.parse(req.originalUrl).search
                                            }));
                            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 renderer.renderEntry(req, res)(entry);
                              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 (
                                            <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 res.status(201).end();
                                  Severity: Major
                                  Found in ghost/core/core/frontend/services/routing/controllers/unsubscribe.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 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 (
                                                    <p>
                                                        {t('Plan checkout was cancelled.')}
                                                    </p>
                                                );
                                        Severity: Major
                                        Found in apps/portal/src/components/Notification.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language