teamdigitale/italia-app

View on GitHub

Showing 4,862 of 4,862 total issues

Avoid too many return statements within this function.
Open

            return {
              ...state,
              archive: insert(message, state.archive),
              inbox: remove(message, state.inbox),
              latestMessageOperation: E.left({
Severity: Major
Found in ts/features/messages/store/reducers/allPaginated.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return {
            ...state,
            processingResult: undefined,
            status: "processing"
          };
    Severity: Major
    Found in ts/features/messages/store/reducers/archiving.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return {
                ...state,
                fromInboxToArchive: duplicateSetAndRemove(
                  state.fromInboxToArchive,
                  action.payload.messageId
      Severity: Major
      Found in ts/features/messages/store/reducers/archiving.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return {
                instruments: pipe(
                  pot.getOrElse(state.instruments, null),
                  O.fromNullable,
                  O.map(el => el.instrumentList),
        Severity: Major
        Found in ts/features/idpay/configuration/store/index.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return formatDateAsLocal(date, true);
          Severity: Major
          Found in ts/features/messages/utils/convertDateToWordDistance.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return {
                      ...state,
                      archive: {
                        ...state.archive,
                        data: pot.toError(state.archive.data, {
            Severity: Major
            Found in ts/features/messages/store/reducers/allPaginated.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return "error";
              Severity: Major
              Found in ts/features/messages/saga/handlePaymentStatusForAnalyticsTracking.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                          return {
                            ...state,
                            archive: replace(message, state.archive),
                            inbox: replace(message, state.inbox)
                          };
                Severity: Major
                Found in ts/features/messages/store/reducers/allPaginated.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return {
                            ...state,
                            archive: {
                              ...state.archive,
                              data: pot.toError(state.inbox.data, {
                  Severity: Major
                  Found in ts/features/messages/store/reducers/allPaginated.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return {
                            ...state,
                            inbox: {
                              ...state.inbox,
                              data: pot.toError(state.inbox.data, {
                    Severity: Major
                    Found in ts/features/messages/store/reducers/allPaginated.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return {
                                ...state,
                                latestMessageOperation: E.right(
                                  update.isArchived ? "archive" : "restore"
                                )
                      Severity: Major
                      Found in ts/features/messages/store/reducers/allPaginated.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return {
                                ...state,
                                instrumentStatus: {
                                  ...state.instrumentStatus,
                                  [instrumentId]: pot.toError(
                        Severity: Major
                        Found in ts/features/idpay/configuration/store/index.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

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

                            Avoid too many return statements within this function.
                            Open

                                  return;
                            Severity: Major
                            Found in ts/features/services/details/saga/handleUpsertServicePreference.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return state;
                              Severity: Major
                              Found in ts/features/services/institution/store/reducers/index.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return {
                                          ...state,
                                          featuredInstitutions: pot.noneLoading
                                        };
                                Severity: Major
                                Found in ts/features/services/home/store/reducers/index.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          ...state,
                                          analyticsData: {
                                            ...state.analyticsData,
                                            receiptOrganizationName: action.payload.carts?.[0]?.payee?.name,
                                  Severity: Major
                                  Found in ts/features/payments/history/store/reducers/index.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return {
                                            ...state,
                                            featuredServices: pot.toUpdating(state.featuredServices, {
                                              services: []
                                            })
                                    Severity: Major
                                    Found in ts/features/services/home/store/reducers/index.ts - 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 state;
                                        Severity: Major
                                        Found in ts/features/services/search/store/reducers/index.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language