TryGhost/Ghost

View on GitHub

Showing 1,820 of 4,015 total issues

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 '';
      Severity: Major
      Found in apps/admin-x-settings/src/utils/linkToGithubReleases.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 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;

                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 `${interval}m`;
                  Severity: Major
                  Found in apps/admin-x-activitypub/src/utils/get-relative-timestamp.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return {save: url, display: url};
                    Severity: Major
                    Found in apps/admin-x-design-system/src/utils/formatUrl.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return {save: url, display: url};
                      Severity: Major
                      Found in apps/admin-x-design-system/src/utils/formatUrl.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return `Just now`;
                        Severity: Major
                        Found in apps/admin-x-activitypub/src/utils/get-relative-timestamp.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return t('{{amount}} months 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 t(`One year ago`);
                            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 `${seconds}s`;
                              Severity: Major
                              Found in apps/admin-x-activitypub/src/utils/get-relative-timestamp.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return t(`One month ago`);
                                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 {save: url, display: url};
                                  Severity: Major
                                  Found in apps/admin-x-design-system/src/utils/formatUrl.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return {save: url, display: displayFromBase(url, baseUrl)};
                                    Severity: Major
                                    Found in apps/admin-x-design-system/src/utils/formatUrl.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return t('{{amount}} days 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 {save: url, display: url};
                                        Severity: Major
                                        Found in apps/admin-x-design-system/src/utils/formatUrl.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language