department-of-veterans-affairs/vets-website

View on GitHub

Showing 4,177 of 14,709 total issues

Avoid too many return statements within this function.
Open

  return indexRemainsInPlace;
Severity: Major
Found in src/applications/find-forms/helpers/index.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return (
        <VerifyEnrollments
          currentProgressBarSegment={currentMonth + 1}
          onBackButtonClick={onBackButtonClick}
          onFinishVerifyingLater={onFinishVerifyingLater}

      Avoid too many return statements within this function.
      Open

        return true;
      Severity: Major
      Found in src/applications/verify-your-enrollment/helpers.jsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return 'Results';

          Avoid too many return statements within this function.
          Open

              return content;

            Avoid too many return statements within this function.
            Open

              return null;

              Avoid too many return statements within this function.
              Open

                    return set({}, fieldName, data?.[fieldName]?.code);

                Avoid too many return statements within this function.
                Open

                  return null;

                  Avoid too many return statements within this function.
                  Open

                        return set({}, fieldName, data?.[fieldName]?.code);

                    Avoid too many return statements within this function.
                    Open

                        return transformInitialFormValues({
                          ...transformBooleanArrayToFormValues(data?.[fieldName]),
                          ...(data?.[notListedTextKey] &&
                            set({}, notListedTextKey, data?.[notListedTextKey])),
                        });

                      Avoid too many return statements within this function.
                      Open

                          return transformInitialFormValues({
                            ...transformBooleanArrayToFormValues(data?.[fieldName]),
                            ...(data?.[notListedTextKey] &&
                              set({}, notListedTextKey, data?.[notListedTextKey])),
                          });

                        Avoid too many return statements within this function.
                        Open

                          return res;
                        Severity: Major
                        Found in src/applications/_mock-form-ae-design-patterns/mocks/script/mem-db.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return transformInitialFormValues({
                                ...transformBooleanArrayToFormValues(data?.[fieldName]),
                                ...(data?.[notListedTextKey] &&
                                  set({}, notListedTextKey, data?.[notListedTextKey])),
                              });

                            Avoid too many return statements within this function.
                            Open

                                  return set({}, fieldName, data?.[fieldName]?.code);

                              Avoid too many return statements within this function.
                              Open

                                return null;

                                Avoid too many return statements within this function.
                                Open

                                    return content;

                                  Avoid too many return statements within this function.
                                  Open

                                        return {
                                          formData: set('vaCompensationType', 'pension', newFormData),
                                          metadata,
                                        };
                                  Severity: Major
                                  Found in src/applications/hca/config/migrations.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return formConfigForOrangeTask;

                                      Avoid too many return statements within this function.
                                      Open

                                          return blueFormConfig;

                                        Avoid too many return statements within this function.
                                        Open

                                            return {
                                              formData: newFormData,
                                              metadata: metadata.prefill
                                                ? metadata
                                                : set('returnUrl', '/va-benefits/basic-information', metadata),
                                        Severity: Major
                                        Found in src/applications/hca/config/migrations.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language