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 b.attributes.recipientName.localeCompare(
          a.attributes.recipientName,
        );
Severity: Major
Found in src/platform/mhv/api/mocks/secure-messaging/threads/index.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return content;
    Severity: Major
    Found in src/platform/forms/save-in-progress/SaveInProgressIntro.jsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return undefined;
      Severity: Major
      Found in src/platform/utilities/data/clone.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return <ConfirmationField formData={refinedData} />;

          Avoid too many return statements within this function.
          Open

            return reviewEntry(description, key, uiSchema, label, refinedData);

            Avoid too many return statements within this function.
            Open

              return null;
            Severity: Major
            Found in src/platform/forms-system/src/js/validation.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return Object.entries(uiSchema).flatMap(([objKey, objVal]) =>
                    fieldEntries(
                      objKey,
                      objVal,
                      data[objKey],

                Avoid too many return statements within this function.
                Open

                      return data.flatMap((_, i) => {
                        return fieldEntries(key, uiSchema, data, schema, schemaFromState, i);
                      });

                  Avoid too many return statements within this function.
                  Open

                            return {
                              type: 'string',
                              title: 'State/Province/Region',
                            };

                    Avoid too many return statements within this function.
                    Open

                        return value;
                    Severity: Major
                    Found in src/platform/forms-system/src/js/helpers.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return Object.entries(uiSchema?.items).flatMap(([arrKey, arrVal]) => {
                            return fieldEntries(
                              arrKey,
                              arrVal,
                              data[index][arrKey],

                        Avoid too many return statements within this function.
                        Open

                              return newValues.length > 0 ? newValues : undefined;
                        Severity: Major
                        Found in src/platform/forms-system/src/js/helpers.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return reviewEntry(description, key, uiSchema, label, confirmData);

                            Avoid too many return statements within this function.
                            Open

                                return newData;
                            Severity: Major
                            Found in src/platform/forms-system/src/js/helpers.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return null;

                                Avoid too many return statements within this function.
                                Open

                                    return <ReviewField {...reviewProps} />;

                                  Avoid too many return statements within this function.
                                  Open

                                    return '';
                                  Severity: Major
                                  Found in src/platform/forms-system/src/js/fields/AutosuggestField.jsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return ADDRESS_VALIDATION_TYPES.SHOW_SUGGESTIONS_OVERRIDE;
                                    Severity: Major
                                    Found in src/platform/user/profile/vap-svc/util/index.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                        return data;
                                      Severity: Major
                                      Found in src/platform/forms-system/src/js/state/helpers.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return set({}, fieldName, data?.[fieldName]?.code);
                                        Severity: Major
                                        Found in src/platform/user/profile/vap-svc/util/contact-information/formValues.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language