department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,846 of 12,846 total issues

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

LiVaLinkAndVaTelephone.propTypes = {
  phoneNumber: PropTypes.string.isRequired,
  text: PropTypes.string.isRequired,
  isInternational: PropTypes.bool,
  isTty: PropTypes.bool,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

App.propTypes = {
  children: PropTypes.element.isRequired,
  location: PropTypes.object.isRequired,
  isLoading: PropTypes.bool,
  showForm: PropTypes.bool,
Severity: Major
Found in src/applications/simple-forms/20-10207/containers/App.jsx and 13 other locations - About 1 hr to fix
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

ClaimCardLink.propTypes = {
  ariaLabel: PropTypes.string.isRequired,
  href: PropTypes.string.isRequired,
  text: PropTypes.string,
  onClick: PropTypes.func,
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

ButtonsGroup.propTypes = {
  onPrimaryClick: PropTypes.func.isRequired,
  onSecondaryClick: PropTypes.func.isRequired,
  primaryLabel: PropTypes.string,
  secondaryLabel: PropTypes.string,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

App.propTypes = {
  children: PropTypes.element.isRequired,
  location: PropTypes.object.isRequired,
  isLoading: PropTypes.bool,
  showForm: PropTypes.bool,
Severity: Major
Found in src/applications/simple-forms/21-4138/containers/App.jsx and 13 other locations - About 1 hr to fix
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

InstallmentContractSummary.propTypes = {
  goToPath: PropTypes.func.isRequired,
  setFormData: PropTypes.func.isRequired,
  contentAfterButtons: PropTypes.node,
  contentBeforeButtons: PropTypes.node,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

ListWrapper.propTypes = {
  children: PropTypes.node.isRequired,
  count: PropTypes.number.isRequired,
  className: PropTypes.string,
  testId: PropTypes.string,
Severity: Major
Found in src/applications/check-in/components/ListWrapper.jsx and 13 other locations - About 1 hr to fix
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97

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

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

CreditCardBillSummary.propTypes = {
  goToPath: PropTypes.func.isRequired,
  setFormData: PropTypes.func.isRequired,
  contentAfterButtons: PropTypes.node,
  contentBeforeButtons: PropTypes.node,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

ButtonsGroup.propTypes = {
  onPrimaryClick: PropTypes.func.isRequired,
  onSecondaryClick: PropTypes.func.isRequired,
  primaryLabel: PropTypes.string,
  secondaryLabel: PropTypes.string,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

Decision.propTypes = {
  aoj: PropTypes.string.isRequired,
  issues: PropTypes.array.isRequired,
  ama: PropTypes.bool,
  boardDecision: PropTypes.bool,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

ProfileLink.propTypes = {
  href: PropTypes.string.isRequired,
  text: PropTypes.string.isRequired,
  active: PropTypes.bool,
  className: PropTypes.string,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

Main.propTypes = {
  apiVersion: PropTypes.object.isRequired,
  getEnrollmentData: PropTypes.func.isRequired,
  availability: PropTypes.string,
  children: PropTypes.node,
Severity: Major
Found in src/applications/post-911-gib-status/containers/Main.jsx and 13 other locations - About 1 hr to fix
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/claims-status/components/appeals-v2/Decision.jsx on lines 102..107
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

Decision.propTypes = {
  aoj: PropTypes.string.isRequired,
  issues: PropTypes.array.isRequired,
  ama: PropTypes.bool,
  boardDecision: PropTypes.bool,
src/applications/claims-status/components/ClaimCard/ClaimCardLink.jsx on lines 24..29
src/applications/financial-status-report/components/householdExpenses/CreditCardBillSummary.jsx on lines 147..152
src/applications/financial-status-report/components/householdExpenses/InstallmentContractSummary.jsx on lines 191..196
src/applications/personalization/dashboard/components/claims-and-appeals/Decision.jsx on lines 96..101
src/applications/personalization/profile/components/ProfileLink.jsx on lines 57..62
src/applications/personalization/profile/components/direct-deposit/vye/components/Buttons.jsx on lines 18..23
src/applications/post-911-gib-status/containers/Main.jsx on lines 49..54
src/applications/sco/components/HubRail/shared/liVaLinkAndVaTelephone.jsx on lines 21..26
src/applications/simple-forms/20-10207/containers/App.jsx on lines 34..39
src/applications/simple-forms/21-4138/containers/App.jsx on lines 34..39
src/applications/verify-your-enrollment/components/Buttons.jsx on lines 22..27
src/platform/site-wide/header/components/LogoRow/index.js on lines 92..97
src/applications/check-in/components/ListWrapper.jsx on lines 20..25

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

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

          {
            resourceType: 'Practitioner',
            id: 'Provider-1',
            identifier: [
              {
src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 39..55
src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1416..1432

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

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

          {
            resourceType: 'Practitioner',
            id: 'Provider-1',
            identifier: [
              {
src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 532..548
src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 1416..1432

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

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

          {
            resourceType: 'Practitioner',
            id: 'Provider-1',
            identifier: [
              {
src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 39..55
src/platform/mhv/api/mocks/medical-records/labs-and-tests/index.js on lines 532..548

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

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

  const {
    personalData: {
      employmentHistory: {
        veteran: { employmentRecords = [] } = {},
        newRecord = {},
src/applications/financial-status-report/components/employment/EmploymentWorkDates.jsx on lines 29..36
src/applications/financial-status-report/components/employment/SpouseEmploymentWorkDates.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/PayrollDeductionChecklist.jsx on lines 22..29
src/applications/financial-status-report/components/householdIncome/PayrollDeductionInputList.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/SpouseGrossMonthlyIncomeInput.jsx on lines 24..31
src/applications/financial-status-report/components/householdIncome/SpousePayrollDeductionChecklist.jsx on lines 23..30
src/applications/financial-status-report/components/householdIncome/SpousePayrollDeductionInputList.jsx on lines 30..37

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

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

  const {
    personalData: {
      employmentHistory: {
        veteran: { employmentRecords = [] } = {},
        newRecord = {},
src/applications/financial-status-report/components/employment/SpouseEmploymentWorkDates.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/GrossMonthlyIncomeInput.jsx on lines 22..29
src/applications/financial-status-report/components/householdIncome/PayrollDeductionChecklist.jsx on lines 22..29
src/applications/financial-status-report/components/householdIncome/PayrollDeductionInputList.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/SpouseGrossMonthlyIncomeInput.jsx on lines 24..31
src/applications/financial-status-report/components/householdIncome/SpousePayrollDeductionChecklist.jsx on lines 23..30
src/applications/financial-status-report/components/householdIncome/SpousePayrollDeductionInputList.jsx on lines 30..37

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

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

  const {
    personalData: {
      employmentHistory: {
        spouse: { spEmploymentRecords = [] } = {},
        newRecord = {},
src/applications/financial-status-report/components/employment/EmploymentWorkDates.jsx on lines 29..36
src/applications/financial-status-report/components/employment/SpouseEmploymentWorkDates.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/GrossMonthlyIncomeInput.jsx on lines 22..29
src/applications/financial-status-report/components/householdIncome/PayrollDeductionChecklist.jsx on lines 22..29
src/applications/financial-status-report/components/householdIncome/PayrollDeductionInputList.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/SpouseGrossMonthlyIncomeInput.jsx on lines 24..31
src/applications/financial-status-report/components/householdIncome/SpousePayrollDeductionInputList.jsx on lines 30..37

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

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

  const {
    personalData: {
      employmentHistory: {
        spouse: { spEmploymentRecords = [] } = {},
        newRecord = {},
src/applications/financial-status-report/components/employment/EmploymentWorkDates.jsx on lines 29..36
src/applications/financial-status-report/components/employment/SpouseEmploymentWorkDates.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/GrossMonthlyIncomeInput.jsx on lines 22..29
src/applications/financial-status-report/components/householdIncome/PayrollDeductionChecklist.jsx on lines 22..29
src/applications/financial-status-report/components/householdIncome/PayrollDeductionInputList.jsx on lines 29..36
src/applications/financial-status-report/components/householdIncome/SpouseGrossMonthlyIncomeInput.jsx on lines 24..31
src/applications/financial-status-report/components/householdIncome/SpousePayrollDeductionChecklist.jsx on lines 23..30

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

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