TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 total issues

Avoid too many return statements within this function.
Open

                return 'changed 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 'bounced 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 time.format(`HH:mm [${utcOffset}] [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 {
                        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 {
                      id: this.fastFakeObjectId(),
                      customer_id: customer.customer_id,
                      subscription_id: `sub_${faker.random.alphaNumeric(14)}`,
                      stripe_price_id: stripePrice.stripe_price_id,

            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 '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 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 false;
                  Severity: Major
                  Found in ghost/admin/app/routes/application.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return '(subscribed:false,email_disabled:1)';
                    Severity: Major
                    Found in ghost/admin/app/components/members/filters/subscribed.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return '(subscribed:true,email_disabled:1)';
                      Severity: Major
                      Found in ghost/admin/app/components/members/filters/subscribed.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return {
                                            value: invert ? 'false' : 'true',
                                            relation: 'is'
                                        };
                        Severity: Major
                        Found in ghost/admin/app/components/members/filters/subscribed.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return `${separator}Ends ${data.trialUntil}`;
                          Severity: Major
                          Found in ghost/admin/app/utils/subscription-data.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return true;
                            Severity: Major
                            Found in ghost/admin/app/routes/application.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return {
                                                  value: !subscribed ? 'subscribed' : 'unsubscribed',
                                                  relation: 'is-not'
                                              };
                              Severity: Major
                              Found in ghost/admin/app/components/members/filters/subscribed.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

                                  Avoid too many return statements within this function.
                                  Open

                                              return {
                                                  value: subscribed ? 'subscribed' : 'unsubscribed',
                                                  relation: 'is'
                                              };
                                  Severity: Major
                                  Found in ghost/admin/app/components/members/filters/subscribed.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return `${separator}Renews${space}${data.validUntil}`;
                                    Severity: Major
                                    Found in ghost/admin/app/utils/subscription-data.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

                                        Avoid too many return statements within this function.
                                        Open

                                                    return amountWithDiscount;
                                        Severity: Major
                                        Found in ghost/members-api/lib/repositories/MemberRepository.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language