teamdigitale/italia-app

View on GitHub

Showing 4,378 of 4,378 total issues

Avoid too many return statements within this function.
Open

        return {
          ...state,
          archive: {
            data: pot.toError(state.inbox.data, action.payload.error.message),
            lastRequest: state.archive.lastRequest
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: 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: remove(message, state.archive),
                    inbox: insert(message, state.inbox),
                    latestMessageOperation: Either.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;
        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 yield* put(searchUserBPay.failure(getNetworkError(e)));
          Severity: Major
          Found in ts/features/wallet/onboarding/bancomatPay/saga/networking/index.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return {
                      ...state,
                      latestMessageOperation: Either.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 true;
              Severity: Major
              Found in ts/features/fastLogin/utils/pinPolicy.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;
                  Severity: Major
                  Found in ts/features/services/search/store/reducers/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/allPaginated.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return {
                              ...state,
                              featuredInstitutions: pot.toUpdating(state.featuredInstitutions, {
                                institutions: []
                              })
                      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,
                                  archive: {
                                    data: pot.toError(state.archive.data, action.payload.error.message),
                                    lastRequest: state.archive.lastRequest
                        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 };
                          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 E.left(getNetworkError(e));

                              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 fastForwardToGrantResponse();
                                Severity: Major
                                Found in ts/features/fims/__mocks__/mockFIMSCallbacks.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return lollipopSignatureFailedResponse();
                                  Severity: Major
                                  Found in ts/features/fims/__mocks__/mockFIMSCallbacks.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return missingFIMSTokenResponse();
                                    Severity: Major
                                    Found in ts/features/fims/__mocks__/mockFIMSCallbacks.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return fakeAsyncHttpCall(() => ({
                                                type: "success",
                                                status: 303,
                                                body: "",
                                                headers: {
                                      Severity: Major
                                      Found in ts/features/fims/__mocks__/mockFIMSCallbacks.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return missingFIMSTokenResponse();
                                        Severity: Major
                                        Found in ts/features/fims/__mocks__/mockFIMSCallbacks.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language