teamdigitale/italia-app

View on GitHub

Showing 4,862 of 4,862 total issues

Avoid too many return statements within this function.
Open

    return await recurseUntilRPUrl(
      {
        ...httpClientConfig,
        verb: "get",
        url: redirectUrl,
Severity: Major
Found in ts/features/fims/singleSignOn/saga/handleFimsGetRedirectUrlAndOpenIAB.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return { tag: "None" };

      Avoid too many return statements within this function.
      Open

                return decoded.map(e => e.driving_privilege);
      Severity: Major
      Found in ts/features/itwallet/issuance/components/ItwRequiredClaimsList.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return null;
        Severity: Major
        Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                    return <AttachmentsClaimItem name={claim.label} />;
          Severity: Major
          Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                      return null; // We want to hide the claim if it's empty
            Severity: Major
            Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                        return <PlainTextClaimItem label={claim.label} claim={decoded} />; // must be the last one to be checked due to overlap with IPatternStringTag
              Severity: Major
              Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return {
                      tag: "CTA",
                      cta1: ctas.cta_1
                    };

                  Avoid too many return statements within this function.
                  Open

                            return <UnknownClaimItem label={claim.label} _claim={decoded} />;
                  Severity: Major
                  Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return decoded; // must be the last one to be checked due to overlap with IPatternStringTag
                    Severity: Major
                    Found in ts/features/itwallet/issuance/components/ItwRequiredClaimsList.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                return I18n.t(
                                  `features.itWallet.presentation.credentialDetails.boolClaim.${decoded}`
                                );
                      Severity: Major
                      Found in ts/features/itwallet/issuance/components/ItwRequiredClaimsList.tsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                  return decoded.map((elem, index) => (
                                    <React.Fragment
                                      key={`${index}_${claim.label}_${elem.driving_privilege}`}
                                    >
                                      {index !== 0 && <Divider />}
                        Severity: Major
                        Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                    return pipe(
                                      decoded,
                                      extractFiscalCode,
                                      O.getOrElseW(() => decoded)
                                    );
                          Severity: Major
                          Found in ts/features/itwallet/issuance/components/ItwRequiredClaimsList.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                      return <PlainTextClaimItem label={claim.label} claim={fiscalCode} />;
                            Severity: Major
                            Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return I18n.t(
                                        "features.itWallet.generic.placeholders.claimNotAvailable"
                                      );
                              Severity: Major
                              Found in ts/features/itwallet/issuance/components/ItwRequiredClaimsList.tsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  return undefined;
                                Severity: Major
                                Found in ts/features/fastLogin/screens/FastLoginModals.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                            return <BoolClaimItem label={claim.label} claim={decoded} />; // m
                                  Severity: Major
                                  Found in ts/features/itwallet/common/components/ItwCredentialClaim.tsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return undefined;
                                    Severity: Major
                                    Found in ts/features/payments/checkout/hooks/useOnTransactionActivationEffect.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return props.brand;
                                      Severity: Major
                                      Found in ts/features/payments/common/components/PaymentCardSmall.tsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return {
                                                type: "SingleCtaCustomFlow",
                                                primaryActionProps: {
                                                  serviceId,
                                                  activate,
                                        Severity: Major
                                        Found in ts/features/services/details/screens/ServiceDetailsScreen.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language