TryGhost/Ghost

View on GitHub

Showing 1,756 of 3,886 total issues

Avoid too many return statements within this function.
Open

            return 'sent email';
Severity: Major
Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return 'received email';
    Severity: Major
    Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return `clicked ${ghPluralize(event.data.count.clicks, 'link')} in email`;
      Severity: Major
      Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return `Made a one-time payment`;
        Severity: Major
        Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return null;
          Severity: Major
          Found in ghost/admin/app/helpers/parse-history-event.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return {
                            route: 'tag',
                            models: [ev.resource.slug]
                        };
            Severity: Major
            Found in ghost/admin/app/helpers/parse-history-event.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return this.visibility;
              Severity: Major
              Found in ghost/admin/app/models/post.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return time.format(f);
                Severity: Major
                Found in ghost/admin/app/helpers/gh-format-post-time.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                  return 'clicked link in email';
                  Severity: Major
                  Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return 'clicked link in email';
                    Severity: Major
                    Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return {
                                  route: 'settings.staff.user',
                                  models: [actor.slug]
                              };
                      Severity: Major
                      Found in ghost/admin/app/helpers/parse-history-event.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return 'canceled paid subscription';
                        Severity: Major
                        Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return formattedAmount;
                          Severity: Major
                          Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return tag;
                            Severity: Major
                            Found in ghost/member-attribution/lib/UrlTranslator.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return {
                                                  referrerSource: knownSource?.source || referrerSource,
                                                  referrerMedium: knownSource?.medium || referrerMedium || urlData?.medium || null,
                                                  referrerUrl: referrerUrl?.hostname ?? null
                                              };
                              Severity: Major
                              Found in ghost/member-attribution/lib/ReferrerTranslator.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                return 'started paid subscription';
                                Severity: Major
                                Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return 'ended paid subscription';
                                  Severity: Major
                                  Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return 'commented';
                                    Severity: Major
                                    Found in ghost/admin/app/helpers/parse-member-event.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return time.format(`[Yesterday]`);
                                      Severity: Major
                                      Found in ghost/admin/app/helpers/gh-format-post-time.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                        return this.invalidate();
                                        Severity: Major
                                        Found in ghost/admin/app/validators/offer.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language