TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 total issues

Avoid too many return statements within this function.
Open

    return false;
Severity: Major
Found in apps/portal/src/utils/helpers.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                    return (
                        <UserIcon style={Style.userIcon} />
                    );
    Severity: Major
    Found in apps/portal/src/components/TriggerButton.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return null;
      Severity: Major
      Found in apps/portal/src/utils/helpers.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return (
                    <p>
                        {t('Signup error: Invalid link')}<br /><a href={singupPortalLink} target="_parent">{t('Click here to retry')}</a>
                    </p>
                );
        Severity: Major
        Found in apps/portal/src/components/Notification.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return (
                  <p>
                      {status === 'success' ? t('Success') : t('Error')}
                  </p>
              );
          Severity: Major
          Found in apps/portal/src/components/Notification.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                                return {
                                    showPopup: true,
                                    page: 'signin',
                                    pageData: {
                                        redirect: site.url + `#/feedback/${postId}/${score}/`
            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: 'accountProfile'
                          };
              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: 'supportSuccess'
                            };
                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: 'supportError'
                              };
                  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: 'signin'
                                };
                    Severity: Major
                    Found in apps/portal/src/App.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return url;
                      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(`You currently have a free membership, upgrade to a paid subscription for full access.`)}</p>
                                    <SubscribeButton />
                                </div>

                          Avoid too many return statements within this function.
                          Open

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

                            Avoid too many return statements within this function.
                            Open

                                    return false;
                            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 {
                                              showPopup,
                                              ...(page ? {page} : {}),
                                              ...(pageQuery ? {pageQuery} : {}),
                                              ...(pageData ? {pageData} : {}),
                              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: 'accountHome'
                                            };
                                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: 'emailReceivingFAQ',
                                                  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 {
                                                    page: 'signup',
                                                    pageQuery: '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: 'default'
                                              };
                                      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: 'support'
                                                    };
                                        Severity: Major
                                        Found in apps/portal/src/App.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language