TryGhost/Ghost

View on GitHub

Showing 1,756 of 3,886 total issues

Avoid too many return statements within this function.
Open

            return;

    Avoid too many return statements within this function.
    Open

                return t(`One hour 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 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 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 {newPassword: 'Sorry, you cannot use an insecure password.'};

            Avoid too many return statements within this function.
            Open

                    return t('{{amount}} hours 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('{{amount}} years 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 week 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 {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;

                        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 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 t('Yesterday');
                            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 day 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: new URL(url, baseUrl).toString()};
                                Severity: Major
                                Found in apps/admin-x-design-system/src/global/form/URLTextField.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return {route: `staff/${action.resource.slug}`};
                                  Severity: Major
                                  Found in apps/admin-x-framework/src/api/actions.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return;
                                    Severity: Major
                                    Found in apps/admin-x-framework/src/api/actions.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/global/form/URLTextField.tsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                        return;
                                        Severity: Major
                                        Found in apps/admin-x-framework/src/api/actions.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language