department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,848 of 12,848 total issues

Function submitFormData has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function submitFormData(stateKey, payload) {
  return async dispatch => {
    dispatch({
      type: FORM_DATA_SUBMIT_START,
      status: LOADING_STATUS.pending,

    Function getAppointmentTimezone has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function getAppointmentTimezone(appointment) {
      if (appointment?.location) {
        return {
          identifier: appointment.location.attributes.timezone.timeZoneId,
          abbreviation: getTimezoneAbbrByFacilityId(

      Function generatePdf has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          async () => {
            setDownloadStarted(true);
            setDownloadType('pdf');
            setBlueButtonRequested(true);
            dispatch(clearAlerts());

        Function AllergiesErrorModal has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const AllergiesErrorModal = props => {
          const {
            onCloseButtonClick,
            onDownloadButtonClick,
            onCancelButtonClick,

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                  <ul>
                    <li>
                      Select <strong>Veteran</strong> if you’ve already paid this
                      provider. We’ll send a check to your mailing address to pay you back
                      (also called reimbursement).
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                <ul>
                  <li>
                    <strong>Priority group 2.</strong> We may assign you to priority group
                    2 if you have a service-connected disability that we’ve rated as 30%
                    or 40% disabling.
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                      <ul>
                        <li>
                          <strong>Zoom in or out</strong> to view a different area of the
                          map, or
                        </li>
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                        <ul>
                          <li>
                            <strong>VA chemistry/hematology results:</strong> Your tests
                            will be listed by a date and specimen. A specimen is the
                            sample studied by the test (like blood, urine, a tissue
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                        <ul>
                          <li>
                            Starting on <strong>March 4,</strong> you won’t be able to use
                            this My HealtheVet tool to send messages to care teams at this
                            facility.
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                        <ul>
                          <li>
                            <strong>View current medications</strong>, and
                          </li>
                          <li>
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

              <ul>
                <li>
                  <strong>VA chemistry/hematology results:</strong> Your tests will be
                  listed by date and specimen. A specimen is the sample studied by the
                  test (like blood, urine, a tissue biopsy, or a throat swab). You can
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                <ul>
                  <li>
                    <b>Personal information.</b> This includes your phone number and
                    address.
                  </li>
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                        <ul>
                          <li>
                            Divorce decree, <b>or</b>
                          </li>
                          <li>
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                    <ul>
                      <li>
                        <b>Personal information about you</b> and anyone else you’re
                        applying for
                      </li>
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/hca/components/IntroductionPage/GetStarted/ProcessTimeline.jsx on lines 83..94
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 11 locations. Consider refactoring.
          Open

                  <ul>
                    <li>
                      <strong>Social Security numbers</strong> for you, your spouse (if
                      you’re married), and any dependents you may have.
                    </li>
          src/applications/gi/containers/search/LocationSearchResults.jsx on lines 601..609
          src/applications/hca/components/FormDescriptions/HealthEnrollmentDescription.jsx on lines 34..46
          src/applications/ivc-champva/10-10D/components/Applicant/applicantFileUpload.js on lines 562..570
          src/applications/ivc-champva/10-10D/containers/IntroductionPage.jsx on lines 65..74
          src/applications/ivc-champva/10-7959C/containers/IntroductionPage.jsx on lines 37..50
          src/applications/ivc-champva/10-7959f-2/components/PaymentSelection.jsx on lines 10..21
          src/applications/mhv-secure-messaging/components/Alerts/CernerTransitioningFacilityAlert.jsx on lines 69..79
          src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js on lines 170..177
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/AuthContent/index.js on lines 184..196
          src/applications/static-pages/health-care-manage-benefits/view-test-and-lab-results-page/components/UnauthContent/index.js on lines 79..90

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 8 locations. Consider refactoring.
          Open

          CreateFolderModal.propTypes = {
            folders: PropTypes.array.isRequired,
            isCreateNewModalVisible: PropTypes.bool.isRequired,
            setIsCreateNewModalVisible: PropTypes.func.isRequired,
            onConfirm: PropTypes.func.isRequired,
          src/applications/dhp-connected-devices/components/DeviceConnectionAlerts.jsx on lines 24..29
          src/applications/financial-status-report/components/shared/DeleteConfirmationModal.jsx on lines 28..33
          src/applications/income-and-asset-statement/components/FormAlerts/index.jsx on lines 31..36
          src/applications/vaos/new-appointment/components/ClinicChoicePage/RequestEligibilityMessage.jsx on lines 105..110
          src/applications/vaos/new-appointment/components/ConfirmationPage/ConfirmationDirectScheduleInfoV2.jsx on lines 145..150
          src/platform/site-wide/va-footer/components/MobileLinks.jsx on lines 104..109
          src/applications/check-in/components/WhatToDoNext.jsx on lines 145..150

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 8 locations. Consider refactoring.
          Open

          RequestEligibilityMessage.propTypes = {
            eligibility: PropTypes.object.isRequired,
            facilityDetails: PropTypes.object.isRequired,
            typeOfCare: PropTypes.object.isRequired,
            typeOfCareName: PropTypes.string.isRequired,
          src/applications/dhp-connected-devices/components/DeviceConnectionAlerts.jsx on lines 24..29
          src/applications/financial-status-report/components/shared/DeleteConfirmationModal.jsx on lines 28..33
          src/applications/income-and-asset-statement/components/FormAlerts/index.jsx on lines 31..36
          src/applications/mhv-secure-messaging/components/Modals/CreateFolderModal.jsx on lines 108..113
          src/applications/vaos/new-appointment/components/ConfirmationPage/ConfirmationDirectScheduleInfoV2.jsx on lines 145..150
          src/platform/site-wide/va-footer/components/MobileLinks.jsx on lines 104..109
          src/applications/check-in/components/WhatToDoNext.jsx on lines 145..150

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 7 locations. Consider refactoring.
          Open

              veteranSupportingDocumentationChapter: {
                title: 'Supporting documentation',
                pages: {
                  veteranSupportDocsPage: {
                    path: 'supporting-documentation',
          Severity: Major
          Found in src/applications/simple-forms/40-0247/config/form.js and 6 other locations - About 1 hr to fix
          src/applications/simple-forms/40-0247/config/form.js on lines 95..107
          src/applications/simple-forms/40-0247/config/form.js on lines 121..133
          src/applications/simple-forms/40-0247/config/form.js on lines 134..146
          src/applications/simple-forms/40-0247/config/form.js on lines 147..159
          src/applications/simple-forms/40-0247/config/form.js on lines 160..172
          src/applications/simple-forms/40-0247/config/form.js on lines 173..185

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 8 locations. Consider refactoring.
          Open

          DeleteConfirmationModal.propTypes = {
            isOpen: PropTypes.bool.isRequired,
            modalTitle: PropTypes.string.isRequired,
            onClose: PropTypes.func.isRequired,
            onDelete: PropTypes.func.isRequired,
          src/applications/dhp-connected-devices/components/DeviceConnectionAlerts.jsx on lines 24..29
          src/applications/income-and-asset-statement/components/FormAlerts/index.jsx on lines 31..36
          src/applications/mhv-secure-messaging/components/Modals/CreateFolderModal.jsx on lines 108..113
          src/applications/vaos/new-appointment/components/ClinicChoicePage/RequestEligibilityMessage.jsx on lines 105..110
          src/applications/vaos/new-appointment/components/ConfirmationPage/ConfirmationDirectScheduleInfoV2.jsx on lines 145..150
          src/platform/site-wide/va-footer/components/MobileLinks.jsx on lines 104..109
          src/applications/check-in/components/WhatToDoNext.jsx on lines 145..150

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 8 locations. Consider refactoring.
          Open

          RequestFormAlert.propTypes = {
            children: PropTypes.node.isRequired,
            formLink: PropTypes.string.isRequired,
            formName: PropTypes.string.isRequired,
            title: PropTypes.string.isRequired,
          src/applications/dhp-connected-devices/components/DeviceConnectionAlerts.jsx on lines 24..29
          src/applications/financial-status-report/components/shared/DeleteConfirmationModal.jsx on lines 28..33
          src/applications/mhv-secure-messaging/components/Modals/CreateFolderModal.jsx on lines 108..113
          src/applications/vaos/new-appointment/components/ClinicChoicePage/RequestEligibilityMessage.jsx on lines 105..110
          src/applications/vaos/new-appointment/components/ConfirmationPage/ConfirmationDirectScheduleInfoV2.jsx on lines 145..150
          src/platform/site-wide/va-footer/components/MobileLinks.jsx on lines 104..109
          src/applications/check-in/components/WhatToDoNext.jsx on lines 145..150

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 64.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Severity
          Category
          Status
          Source
          Language