src/app/components/FrostedGlassPromo/withData.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
A
97%

Function buildImageProperties has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const buildImageProperties = (imageProps?: ImageProps) => {
  const image =
    imageProps?.path || imageProps?.locator ? imageProps : defaultImageProps;

  const {
Severity: Minor
Found in src/app/components/FrostedGlassPromo/withData.tsx - About 1 hr to fix

    Function optimoPromoFormatter has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const optimoPromoFormatter = (props: PromoProps): FormattedPromo => {
      const defaultPromoImage = pathOr<OptimoBlock[]>(
        [],
        ['item', 'images', 'defaultPromoImage', 'blocks'],
        props,
    Severity: Minor
    Found in src/app/components/FrostedGlassPromo/withData.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status