TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 total issues

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 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.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, 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 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 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.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.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.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 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 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 {
                                        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.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 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 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 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 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 `${humanNumber(rounding(memberCount, 100000)).toLowerCase()}+`;
                                        Severity: Major
                                        Found in ghost/core/core/frontend/utils/member-count.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language