TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 total issues

Avoid too many return statements within this function.
Open

                return;
Severity: Major
Found in ghost/ghost/src/nestjs/interceptors/location-header.interceptor.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return (
                    <div className='gh-portal-section'>
                        <p className='gh-portal-text-center gh-portal-free-ctatext'>{t(`Your subscription will start on {{subscriptionStart}}`, {subscriptionStart: trialEnd})}</p>
                    </div>
                );

      Avoid too many return statements within this function.
      Open

              return (
                  <div className='gh-portal-section'>
                      <p className='gh-portal-text-center gh-portal-free-ctatext'>{t(`Your subscription will renew on {{renewalDate}}`, {renewalDate: getDateString(currentPeriodEnd)})}</p>
                  </div>
              );

        Avoid too many return statements within this function.
        Open

                    return {
                        page: 'recommendations',
                        pageData: {
                            signup: false
                        }
        Severity: Major
        Found in apps/portal/src/App.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return {value: false};
          Severity: Major
          Found in ghost/post-revisions/src/PostRevisions.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return {
                            page: 'signup',
                            pageQuery: pageQuery
                        };
            Severity: Major
            Found in apps/portal/src/App.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return member;
              Severity: Major
              Found in apps/portal/src/App.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return {};
                Severity: Major
                Found in apps/portal/src/App.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return true;
                  Severity: Major
                  Found in ghost/ghost/src/nestjs/guards/admin-api-authentication.guard.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return {
                            action: 'updateProfile:success',
                            page: 'accountHome',
                            popupNotification: createPopupNotification({
                                type: 'updateProfile:success', autoHide: true, closeable: true, status: 'success', state,
                    Severity: Major
                    Found in apps/portal/src/actions.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return {
                                      page: 'signup',
                                      pageQuery: `${productId}/yearly`
                                  };
                      Severity: Major
                      Found in apps/portal/src/App.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return {
                                        page: 'accountPlan'
                                    };
                        Severity: Major
                        Found in apps/portal/src/App.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return {
                                          page: 'emailSuppressionFAQ',
                                          pageData: {
                                              direct: true
                                          }
                          Severity: Major
                          Found in apps/portal/src/App.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return null;

                              Avoid too many return statements within this function.
                              Open

                                          return {
                                              page: 'signup',
                                              pageQuery: 'free'
                                          };
                              Severity: Major
                              Found in apps/portal/src/App.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return {
                                                page: 'accountEmail'
                                            };
                                Severity: Major
                                Found in apps/portal/src/App.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return {value: true, reason: 'background_save'};
                                  Severity: Major
                                  Found in ghost/post-revisions/src/PostRevisions.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return {newPassword: 'Sorry, you cannot use an insecure password.'};

                                      Avoid too many return statements within this function.
                                      Open

                                              return {};

                                        Avoid too many return statements within this function.
                                        Open

                                            return defaultEmailRecipients;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language