department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,920 of 12,920 total issues

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

          <Route path={`${match.url}/sleep-care`}>
            <TypeOfSleepCarePage changeCrumb={newTitle => setCrumb(newTitle)} />
          </Route>
Severity: Major
Found in src/applications/vaos/new-appointment/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 174..176
src/applications/vaos/covid-19-vaccine/index.jsx on lines 187..189
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 98..100
src/applications/vaos/new-appointment/index.jsx on lines 101..105
src/applications/vaos/new-appointment/index.jsx on lines 106..108
src/applications/vaos/new-appointment/index.jsx on lines 109..111
src/applications/vaos/new-appointment/index.jsx on lines 118..120
src/applications/vaos/new-appointment/index.jsx on lines 155..157

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

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

          <Route path={`${match.url}/eye-care`}>
            <TypeOfEyeCarePage changeCrumb={newTitle => setCrumb(newTitle)} />
          </Route>
Severity: Major
Found in src/applications/vaos/new-appointment/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 174..176
src/applications/vaos/covid-19-vaccine/index.jsx on lines 187..189
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 95..97
src/applications/vaos/new-appointment/index.jsx on lines 101..105
src/applications/vaos/new-appointment/index.jsx on lines 106..108
src/applications/vaos/new-appointment/index.jsx on lines 109..111
src/applications/vaos/new-appointment/index.jsx on lines 118..120
src/applications/vaos/new-appointment/index.jsx on lines 155..157

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

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

          <Route path={`${match.url}/audiology-care`}>
            <TypeOfAudiologyCarePage
              changeCrumb={newTitle => setCrumb(newTitle)}
            />
          </Route>
Severity: Major
Found in src/applications/vaos/new-appointment/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 174..176
src/applications/vaos/covid-19-vaccine/index.jsx on lines 187..189
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 95..97
src/applications/vaos/new-appointment/index.jsx on lines 98..100
src/applications/vaos/new-appointment/index.jsx on lines 106..108
src/applications/vaos/new-appointment/index.jsx on lines 109..111
src/applications/vaos/new-appointment/index.jsx on lines 118..120
src/applications/vaos/new-appointment/index.jsx on lines 155..157

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

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

          <Route path={`${match.url}/clinic`}>
            <ClinicChoicePage changeCrumb={newTitle => setCrumb(newTitle)} />
          </Route>
Severity: Major
Found in src/applications/vaos/new-appointment/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 174..176
src/applications/vaos/covid-19-vaccine/index.jsx on lines 187..189
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 95..97
src/applications/vaos/new-appointment/index.jsx on lines 98..100
src/applications/vaos/new-appointment/index.jsx on lines 101..105
src/applications/vaos/new-appointment/index.jsx on lines 106..108
src/applications/vaos/new-appointment/index.jsx on lines 109..111
src/applications/vaos/new-appointment/index.jsx on lines 118..120

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

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

        <Route path={`${match.url}`}>
          <PlanAheadPage changeCrumb={newTitle => setCrumb(newTitle)} />
        </Route>
Severity: Major
Found in src/applications/vaos/covid-19-vaccine/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 174..176
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 95..97
src/applications/vaos/new-appointment/index.jsx on lines 98..100
src/applications/vaos/new-appointment/index.jsx on lines 101..105
src/applications/vaos/new-appointment/index.jsx on lines 106..108
src/applications/vaos/new-appointment/index.jsx on lines 109..111
src/applications/vaos/new-appointment/index.jsx on lines 118..120
src/applications/vaos/new-appointment/index.jsx on lines 155..157

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

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

          <Route path={`${match.url}/preferred-date`}>
            <PreferredDatePage changeCrumb={newTitle => setCrumb(newTitle)} />
          </Route>
Severity: Major
Found in src/applications/vaos/new-appointment/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 174..176
src/applications/vaos/covid-19-vaccine/index.jsx on lines 187..189
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 95..97
src/applications/vaos/new-appointment/index.jsx on lines 98..100
src/applications/vaos/new-appointment/index.jsx on lines 101..105
src/applications/vaos/new-appointment/index.jsx on lines 109..111
src/applications/vaos/new-appointment/index.jsx on lines 118..120
src/applications/vaos/new-appointment/index.jsx on lines 155..157

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

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

        <Route path={`${match.url}/review`}>
          <ReviewPage changeCrumb={newTitle => setCrumb(newTitle)} />
        </Route>
Severity: Major
Found in src/applications/vaos/covid-19-vaccine/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 187..189
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 95..97
src/applications/vaos/new-appointment/index.jsx on lines 98..100
src/applications/vaos/new-appointment/index.jsx on lines 101..105
src/applications/vaos/new-appointment/index.jsx on lines 106..108
src/applications/vaos/new-appointment/index.jsx on lines 109..111
src/applications/vaos/new-appointment/index.jsx on lines 118..120
src/applications/vaos/new-appointment/index.jsx on lines 155..157

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

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

          <Route path={`${match.url}/date-time`}>
            <DateTimeSelectPage changeCrumb={newTitle => setCrumb(newTitle)} />
          </Route>
Severity: Major
Found in src/applications/vaos/new-appointment/index.jsx and 10 other locations - About 1 hr to fix
src/applications/vaos/covid-19-vaccine/index.jsx on lines 126..128
src/applications/vaos/covid-19-vaccine/index.jsx on lines 174..176
src/applications/vaos/covid-19-vaccine/index.jsx on lines 187..189
src/applications/vaos/new-appointment/index.jsx on lines 84..86
src/applications/vaos/new-appointment/index.jsx on lines 95..97
src/applications/vaos/new-appointment/index.jsx on lines 98..100
src/applications/vaos/new-appointment/index.jsx on lines 101..105
src/applications/vaos/new-appointment/index.jsx on lines 106..108
src/applications/vaos/new-appointment/index.jsx on lines 118..120
src/applications/vaos/new-appointment/index.jsx on lines 155..157

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

  useEffect(
    () => {
      // clear error state between pages
      setCheckboxErrorMessage(null);
      setInputErrorMessage(null);
src/applications/appeals/shared/components/AreaOfDisagreement.jsx on lines 41..51
src/applications/appeals/testing/nod-new/components/AreaOfDisagreement.jsx on lines 40..50

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

  useEffect(
    () => {
      // clear error state between pages
      setCheckboxErrorMessage(null);
      setInputErrorMessage(null);
src/applications/appeals/testing/hlr/components/AreaOfDisagreement.jsx on lines 46..56
src/applications/appeals/testing/nod-new/components/AreaOfDisagreement.jsx on lines 40..50

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

  const focusAddAnotherButton = () => {
    // Add a timeout to allow for the upload button to reappear in the DOM
    // before trying to focus on it
    setTimeout(() => {
      // focus on upload button, not the label
src/applications/pre-need/components/FileField.jsx on lines 162..174
src/platform/forms-system/src/js/fields/FileField.jsx on lines 166..178

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

  const focusAddAnotherButton = () => {
    // Add a timeout to allow for the upload button to reappear in the DOM
    // before trying to focus on it
    setTimeout(() => {
      // focus on upload button, not the label
Severity: Major
Found in src/platform/forms-system/src/js/fields/FileField.jsx and 2 other locations - About 1 hr to fix
src/applications/pre-need/components/FileField.jsx on lines 162..174
src/applications/simple-forms/40-0247/components/FileField.jsx on lines 165..177

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

  const focusAddAnotherButton = () => {
    // Add a timeout to allow for the upload button to reappear in the DOM
    // before trying to focus on it
    setTimeout(() => {
      // focus on upload button, not the label
Severity: Major
Found in src/applications/pre-need/components/FileField.jsx and 2 other locations - About 1 hr to fix
src/applications/simple-forms/40-0247/components/FileField.jsx on lines 165..177
src/platform/forms-system/src/js/fields/FileField.jsx on lines 166..178

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

  useEffect(
    () => {
      // clear error state between pages
      setCheckboxErrorMessage(null);
      setInputErrorMessage(null);
src/applications/appeals/shared/components/AreaOfDisagreement.jsx on lines 41..51
src/applications/appeals/testing/hlr/components/AreaOfDisagreement.jsx on lines 46..56

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

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

              <ul>
                <li>
                  You told us you have too much of this medication or supply,{' '}
                  <strong>or</strong>
                </li>
src/applications/claims-status/components/StemDeniedDetails.jsx on lines 96..105
src/applications/coronavirus-screener/config/questions.jsx on lines 185..191
src/applications/enrollment-verification/containers/EnrollmentVerificationIntroPage.jsx on lines 127..133
src/applications/pensions/config/chapters/06-additional-information/supportingDocuments.js on lines 185..196
src/applications/post-911-gib-status/utils/helpers.jsx on lines 72..78
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 125..131
src/applications/simple-forms/21-0966/containers/IntroductionPage.jsx on lines 37..48

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

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

          <ul>
            <li>
              They had COVID-19 (confirmed with a positive COVID-19 test),{' '}
              <strong>or</strong>
            </li>
Severity: Major
Found in src/applications/coronavirus-screener/config/questions.jsx and 7 other locations - About 1 hr to fix
src/applications/claims-status/components/StemDeniedDetails.jsx on lines 96..105
src/applications/enrollment-verification/containers/EnrollmentVerificationIntroPage.jsx on lines 127..133
src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 139..145
src/applications/pensions/config/chapters/06-additional-information/supportingDocuments.js on lines 185..196
src/applications/post-911-gib-status/utils/helpers.jsx on lines 72..78
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 125..131
src/applications/simple-forms/21-0966/containers/IntroductionPage.jsx on lines 37..48

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

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

      <ul>
        <li>
          Montgomery GI Bill - Active Duty (MGIB-AD, Chapter 30),{' '}
          <strong>or</strong>
        </li>
src/applications/claims-status/components/StemDeniedDetails.jsx on lines 96..105
src/applications/coronavirus-screener/config/questions.jsx on lines 185..191
src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 139..145
src/applications/pensions/config/chapters/06-additional-information/supportingDocuments.js on lines 185..196
src/applications/post-911-gib-status/utils/helpers.jsx on lines 72..78
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 125..131
src/applications/simple-forms/21-0966/containers/IntroductionPage.jsx on lines 37..48

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

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

        <ul>
          <li>
            After you submit your intent to file, you have{' '}
            <strong>1 year</strong> to complete and file your claim. After 1
            year, the potential effective date for your benefits will expire.
src/applications/claims-status/components/StemDeniedDetails.jsx on lines 96..105
src/applications/coronavirus-screener/config/questions.jsx on lines 185..191
src/applications/enrollment-verification/containers/EnrollmentVerificationIntroPage.jsx on lines 127..133
src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 139..145
src/applications/pensions/config/chapters/06-additional-information/supportingDocuments.js on lines 185..196
src/applications/post-911-gib-status/utils/helpers.jsx on lines 72..78
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 125..131

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

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

      <ul>
        <li>
          You or your school did not yet make a request to us,{' '}
          <strong>or</strong>
        </li>
Severity: Major
Found in src/applications/post-911-gib-status/utils/helpers.jsx and 7 other locations - About 1 hr to fix
src/applications/claims-status/components/StemDeniedDetails.jsx on lines 96..105
src/applications/coronavirus-screener/config/questions.jsx on lines 185..191
src/applications/enrollment-verification/containers/EnrollmentVerificationIntroPage.jsx on lines 127..133
src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 139..145
src/applications/pensions/config/chapters/06-additional-information/supportingDocuments.js on lines 185..196
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 125..131
src/applications/simple-forms/21-0966/containers/IntroductionPage.jsx on lines 37..48

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

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

                  <ul>
                    <li>
                      You’re unemployed due to a permanent disability (a
                      disability that’s not expected to improve),{' '}
                      <strong>or</strong>
src/applications/claims-status/components/StemDeniedDetails.jsx on lines 96..105
src/applications/coronavirus-screener/config/questions.jsx on lines 185..191
src/applications/enrollment-verification/containers/EnrollmentVerificationIntroPage.jsx on lines 127..133
src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 139..145
src/applications/post-911-gib-status/utils/helpers.jsx on lines 72..78
src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 125..131
src/applications/simple-forms/21-0966/containers/IntroductionPage.jsx on lines 37..48

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

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