department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,848 of 12,848 total issues

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

      <va-accordion-item header="Compensation or Pension">
        <ul>
          <li>
            Intent to File a Claim for Compensation and/or Pension, or Survivors
            Pension and/or DIC (VA Form 21-0966)
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 28..39
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 66..77
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 78..89
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 90..101
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 114..125
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 126..136
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 137..148
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 238..248
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 249..260

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

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 10 locations. Consider refactoring.
Open

      <va-accordion-item header="Specially adapted housing or special home adaptation">
        <ul>
          <li>
            Application in Acquiring Specially Adapted Housing or Special Home
            Adaptation Grant (VA Form 26-4555)
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 28..39
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 66..77
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 78..89
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 90..101
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 102..113
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 114..125
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 126..136
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 137..148
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 238..248

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

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 10 locations. Consider refactoring.
Open

      <va-accordion-item header="Dependent parent(s)">
        <ul>
          <li>
            Statement of Dependency of Parent(s) (VA Form 21P-509)
            <br />
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 28..39
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 66..77
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 78..89
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 90..101
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 102..113
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 114..125
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 137..148
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 238..248
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 249..260

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

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 10 locations. Consider refactoring.
Open

      <va-accordion-item header="Benefits for certain children with disabilities">
        <ul>
          <li>
            Application for Benefits for a Qualifying Veteran’s Child Born with
            Disabilities (VA Form 21-0304)
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 28..39
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 66..77
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 90..101
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 102..113
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 114..125
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 126..136
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 137..148
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 238..248
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 249..260

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

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 10 locations. Consider refactoring.
Open

      <va-accordion-item header="Individual unemployability">
        <ul>
          <li>
            Veteran’s Application for Increased Compensation Based on
            Unemployability (VA Form 21-8940)
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 28..39
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 66..77
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 78..89
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 90..101
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 102..113
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 114..125
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 126..136
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 238..248
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 249..260

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

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 10 locations. Consider refactoring.
Open

      <va-accordion-item header="Compensation">
        <ul>
          <li>
            Application for Disability Compensation and Related Compensation
            Benefits (VA Form 21-526EZ)
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 28..39
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 66..77
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 78..89
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 102..113
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 114..125
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 126..136
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 137..148
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 238..248
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 249..260

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

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 10 locations. Consider refactoring.
Open

      <va-accordion-item header="Dependents">
        <ul>
          <li>
            Application Request to Add and/or Remove Dependents (VA Form
            21-686c)
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 28..39
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 66..77
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 78..89
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 90..101
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 102..113
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 126..136
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 137..148
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 238..248
src/applications/simple-forms/21-0972/containers/ConfirmationPage.jsx on lines 249..260

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

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

      <div className="print-only">
        <span className="vads-u-display--inline-block vads-u-font-weight--bold">
          Provider notes:
        </span>{' '}
        <span className="vads-u-display--inline-block" data-dd-privacy="mask">
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 32..37
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 40..47
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 54..61
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 62..69
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 70..77
src/applications/mhv-medical-records/components/RecordList/VaccinesListItem.jsx on lines 38..43

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

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 6 locations. Consider refactoring.
Open

export const schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryHistoryPreparer.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/applicantMilitaryHistorySelf.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/preparerDetails.jsx on lines 39..54
src/applications/pre-need-integration/config/pages/sponsorMilitaryHistory.jsx on lines 53..68
src/applications/pre-need/config/pages/sponsorMilitaryHistory.jsx on lines 49..64

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

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 6 locations. Consider refactoring.
Open

export const schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryHistoryPreparer.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/preparerDetails.jsx on lines 39..54
src/applications/pre-need-integration/config/pages/sponsorMilitaryHistory.jsx on lines 53..68
src/applications/pre-need/config/pages/applicantMilitaryHistory.jsx on lines 17..32
src/applications/pre-need/config/pages/sponsorMilitaryHistory.jsx on lines 49..64

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

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

      <div className="print-only">
        <span className="vads-u-display--inline-block vads-u-font-weight--bold">
          Location:
        </span>{' '}
        <span className="vads-u-display--inline-block" data-dd-privacy="mask">
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 32..37
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 40..47
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 54..61
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 70..77
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 78..85
src/applications/mhv-medical-records/components/RecordList/VaccinesListItem.jsx on lines 38..43

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

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

      <div className="print-only">
        <span className="vads-u-display--inline-block vads-u-font-weight--bold">
          Observed or historical:
        </span>{' '}
        <span className="vads-u-display--inline-block" data-dd-privacy="mask">
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 32..37
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 40..47
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 54..61
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 62..69
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 78..85
src/applications/mhv-medical-records/components/RecordList/VaccinesListItem.jsx on lines 38..43

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

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

      <div className="print-only">
        <span className="vads-u-display--inline-block vads-u-font-weight--bold">
          Date entered:
        </span>{' '}
        <span className="vads-u-display--inline-block" data-dd-privacy="mask">
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 32..37
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 54..61
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 62..69
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 70..77
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 78..85
src/applications/mhv-medical-records/components/RecordList/VaccinesListItem.jsx on lines 38..43

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

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

      <div className="print-only">
        <span className="vads-u-display--inline">Location:</span>{' '}
        <span className="vads-u-display--inline" data-dd-privacy="mask">
          {record.location}
        </span>
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 32..37
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 40..47
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 54..61
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 62..69
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 70..77
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 78..85

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

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

      <div className="print-only">
        <span className="vads-u-display--inline-block vads-u-font-weight--bold">
          Type of allergy:
        </span>{' '}
        <span className="vads-u-display--inline-block" data-dd-privacy="mask">
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 32..37
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 40..47
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 62..69
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 70..77
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 78..85
src/applications/mhv-medical-records/components/RecordList/VaccinesListItem.jsx on lines 38..43

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

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

      <div className="no-print">
        <span className="vads-u-display--inline-block">Date entered:</span>{' '}
        <span className="vads-u-display--inline-block" data-dd-privacy="mask">
          {record.date}
        </span>
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 40..47
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 54..61
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 62..69
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 70..77
src/applications/mhv-medical-records/components/RecordList/AllergyListItem.jsx on lines 78..85
src/applications/mhv-medical-records/components/RecordList/VaccinesListItem.jsx on lines 38..43

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

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 6 locations. Consider refactoring.
Open

export const schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryHistorySelf.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/preparerDetails.jsx on lines 39..54
src/applications/pre-need-integration/config/pages/sponsorMilitaryHistory.jsx on lines 53..68
src/applications/pre-need/config/pages/applicantMilitaryHistory.jsx on lines 17..32
src/applications/pre-need/config/pages/sponsorMilitaryHistory.jsx on lines 49..64

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

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 6 locations. Consider refactoring.
Open

export const schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryHistoryPreparer.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/applicantMilitaryHistorySelf.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/preparerDetails.jsx on lines 39..54
src/applications/pre-need/config/pages/applicantMilitaryHistory.jsx on lines 17..32
src/applications/pre-need/config/pages/sponsorMilitaryHistory.jsx on lines 49..64

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

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 6 locations. Consider refactoring.
Open

export const schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryHistoryPreparer.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/applicantMilitaryHistorySelf.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/sponsorMilitaryHistory.jsx on lines 53..68
src/applications/pre-need/config/pages/applicantMilitaryHistory.jsx on lines 17..32
src/applications/pre-need/config/pages/sponsorMilitaryHistory.jsx on lines 49..64

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

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 6 locations. Consider refactoring.
Open

export const schema = {
  type: 'object',
  properties: {
    application: {
      type: 'object',
src/applications/pre-need-integration/config/pages/applicantMilitaryHistoryPreparer.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/applicantMilitaryHistorySelf.jsx on lines 17..32
src/applications/pre-need-integration/config/pages/preparerDetails.jsx on lines 39..54
src/applications/pre-need-integration/config/pages/sponsorMilitaryHistory.jsx on lines 53..68
src/applications/pre-need/config/pages/applicantMilitaryHistory.jsx on lines 17..32

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

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