TryGhost/Ghost

View on GitHub

Showing 1,756 of 3,886 total issues

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 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 new SafeString(result);
      Severity: Major
      Found in ghost/core/core/frontend/helpers/match.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return;

          Avoid too many return statements within this function.
          Open

              return maybeEnsureRelativePath(
                  getImageUrl(
                      applyImageSizes(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 amount / 100;
            Severity: Major
            Found in ghost/core/core/frontend/helpers/price.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

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

                Avoid too many return statements within this function.
                Open

                                return cacheEntry.value || null;
                Severity: Major
                Found in ghost/core/core/shared/settings-cache/CacheManager.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 `${humanNumber(rounding(memberCount, 10000)).toLowerCase()}+`;
                    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;
                      Severity: Major
                      Found in ghost/core/core/server/data/importer/importers/data/Base.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return JSON.parse(cacheEntry.value) || null;
                        Severity: Major
                        Found in ghost/core/core/shared/settings-cache/CacheManager.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return urlUtils.relativeToAbsolute(contextObject.twitter_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/og-image.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return noOptimisation;
                              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 `${humanNumber(rounding(memberCount, 100000)).toLowerCase()}+`;
                                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 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;
                                    Severity: Major
                                    Found in ghost/core/core/server/data/importer/importers/data/Base.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/og-image.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return '';
                                        Severity: Major
                                        Found in ghost/core/core/frontend/helpers/price.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language