TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 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 {
                    route: 'settings.staff.user',
                    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 compare(status1.valueOf(), status2.valueOf());
      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 'opened 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 '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 '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 {
                              type: 'author',
                              id: resource.data.id
                          };
              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 null;
                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 null;
                  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 '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 '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;
                        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 endDateB.valueOf() - endDateA.valueOf();
                          Severity: Major
                          Found in ghost/admin/app/helpers/most-relevant-subscription.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 'Email address changed';
                              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(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 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 'email flagged as spam';
                                    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 'less like this';
                                      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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language