TryGhost/Ghost

View on GitHub

Showing 1,756 of 3,886 total issues

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 {
                    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 {
                      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 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 {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: `${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: '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 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 {
                                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 {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 text;
                        Severity: Major
                        Found in apps/admin-x-settings/src/utils/search.tsx - 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 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 {
                                              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: '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 {newPassword: 'Sorry, you cannot use an insecure password.'};

                                    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 t('{{amount}} weeks ago', {amount: Math.floor(diff)});
                                      Severity: Major
                                      Found in apps/comments-ui/src/utils/helpers.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return {};
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language