TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 total issues

Avoid too many return statements within this function.
Open

        return imgBlogUrl;
Severity: Major
Found in ghost/core/core/frontend/utils/images.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return urlUtils.relativeToAbsolute(settingsCache.get('cover_image'));
    Severity: Major
    Found in ghost/core/core/frontend/meta/twitter-image.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return urlUtils.relativeToAbsolute(contextObject.feature_image);
      Severity: Major
      Found in ghost/core/core/frontend/meta/twitter-image.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return requestedImageUrl;
        Severity: Major
        Found in ghost/core/core/frontend/helpers/img_url.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return urlUtils.relativeToAbsolute(contextObject.cover_image);
          Severity: Major
          Found in ghost/core/core/frontend/meta/twitter-image.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return sanitizeAmpUrl(urlUtils.urlFor(data, {}, absolute));
            Severity: Major
            Found in ghost/core/core/frontend/meta/url.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return `${numberWithCommas(rounding(memberCount, 1000))}+`;
              Severity: Major
              Found in ghost/core/core/frontend/utils/member-count.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return options.inverse(self, {data: data});
                Severity: Major
                Found in ghost/core/core/frontend/helpers/get.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('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 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 (
                                    <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 (
                                          <p>
                                              {t('Thank you for your support!')}
                                          </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.redirect(302, redirectUrl.href);
                                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 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 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 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 (
                                                            <img style={{width: '26px', height: '26px'}} src={buttonIcon} alt="" />
                                                        );
                                        Severity: Major
                                        Found in apps/portal/src/components/TriggerButton.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language