teamdigitale/italia-app

View on GitHub

Showing 4,378 of 4,378 total issues

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 null;
    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 "Missing 'x-pagopa-lollipop-original-url' lollipop header";
      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 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 "Missing 'x-pagopa-lollipop-custom-authorization_code' lollipop header";
          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 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 yield* put(searchUserPans.failure(getGenericError(new Error(e))));
                Severity: Major
                Found in ts/features/wallet/onboarding/bancomat/saga/networking/index.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: "failure",
                        code: 404,
                        message: `Url (${url}) does not exist`
                      }));
                    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: "failure",
                              code: 403,
                              message: lollipopError
                            }));
                      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 E.left(getNetworkError(e));

                          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 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 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

                                  Avoid too many return statements within this function.
                                  Open

                                      return yield* put(
                                        searchUserPans.failure(getGenericError(convertUnknownToError(e)))
                                      );
                                  Severity: Major
                                  Found in ts/features/wallet/onboarding/bancomat/saga/networking/index.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return fakeAsyncHttpCall(() => ({
                                              type: "success",
                                              status: 200,
                                              body: "<html><head><title>Welcome User!</title></head><body>You are now authenticated</body></html>",
                                              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 fakeAsyncHttpCall(() => ({
                                                type: "success",
                                                status: 302,
                                                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 undefined;
                                        Severity: Major
                                        Found in ts/features/fastLogin/screens/FastLoginModals.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language