TryGhost/Ghost

View on GitHub

Showing 1,756 of 3,886 total issues

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 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 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 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;
          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/twitter-image.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return urlUtils.relativeToAbsolute(contextObject.og_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 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 {
                              options: {
                                  ...options,
                                  limit,
                                  filter
                  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 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, 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;

                          Avoid too many return statements within this function.
                          Open

                              return null;
                          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;
                            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(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 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(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 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 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 urlUtils.relativeToAbsolute(contextObject.cover_image);
                                        Severity: Major
                                        Found in ghost/core/core/frontend/meta/og-image.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language