teamdigitale/italia-app

View on GitHub

Showing 4,378 of 4,378 total issues

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 { tag: "None" };

      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

        Avoid too many return statements within this function.
        Open

              return <CoBadgeStartKoUnavailable />;

          Avoid too many return statements within this function.
          Open

              return E.left(error);

            Avoid too many return statements within this function.
            Open

                return undefined;
            Severity: Major
            Found in ts/features/services/details/screens/ServiceDetailsScreen.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 {
                        ...state,
                        ...{
                          kind: "LogoutRequested",
                          reason: "NOT_LOGGED_IN"
                  Severity: Major
                  Found in ts/store/reducers/authentication.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return {
                          ...state,
                          isItWalletTestEnabled: action.payload.isItWalletTestEnabled
                        };
                    Severity: Major
                    Found in ts/store/reducers/persistedPreferences.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return INITIAL_STATE;
                      Severity: Major
                      Found in ts/store/reducers/payments/history.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return pot.noneError(Error("Unable to load visible services"));
                        Severity: Major
                        Found in ts/store/reducers/entities/services/index.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return state;
                          Severity: Major
                          Found in ts/store/reducers/profile.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return {
                                  kind: "LoggedOutWithIdp",
                                  idp: state.idp,
                                  reason: isActionOf(sessionExpired, action)
                                    ? "SESSION_EXPIRED"
                            Severity: Major
                            Found in ts/store/reducers/authentication.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return {
                                    ...state,
                                    isIdPayTestEnabled: action.payload.isIdPayTestEnabled
                                  };
                              Severity: Major
                              Found in ts/store/reducers/persistedPreferences.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return state;
                                Severity: Major
                                Found in ts/store/reducers/profile.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return replaceLastItem(state, updateOutcome);
                                  Severity: Major
                                  Found in ts/store/reducers/payments/history.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return replaceLastItem(state, navigationUrls);
                                    Severity: Major
                                    Found in ts/store/reducers/payments/history.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return {
                                            ...state,
                                            ...{
                                              sessionToken: action.payload
                                            }
                                      Severity: Major
                                      Found in ts/store/reducers/authentication.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return INITIAL_STATE;
                                        Severity: Major
                                        Found in ts/store/reducers/authentication.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language