department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,848 of 12,848 total issues

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

export const schema = {
  type: 'object',
  properties: {
    veteranMarriageHistory: {
      type: 'array',
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/studentAdditionalInformationPartThirteen.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/674/student-information/studentAdditionalInformationPartThree.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/current-spouse-marriage-history-details/currentSpouseMarriageHistoryDetailsPartFive.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/current-spouse-marriage-history-details/currentSpouseMarriageHistoryDetailsPartFour.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/current-spouse-marriage-history-details/currentSpouseMarriageHistoryDetailsPartThree.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/current-spouse-marriage-history-details/currentSpouseMarriageHistoryDetailsPartTwo.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/current-spouse-marriage-history/currentSpouseMarriageHistoryPartTwo.js on lines 9..24
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/veteran-marriage-history-details/veteranMarriageHistoryDetailsPartFive.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/veteran-marriage-history-details/veteranMarriageHistoryDetailsPartFour.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/veteran-marriage-history-details/veteranMarriageHistoryDetailsPartTwo.js on lines 7..22
src/applications/disability-benefits/686c-674-v2/config/chapters/report-add-a-spouse/veteran-marriage-history/veteranMarriageHistoryPartTwo.js on lines 8..23

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

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 makeAllTogglesTrue = toggles => {
  const result = { ...toggles };
  Object.keys(result).forEach(key => {
    result[key] = true;
  });
src/applications/_mock-form-ae-design-patterns/mocks/endpoints/feature-toggles/index.js on lines 10..16
src/applications/representative-appoint/mocks/endpoints/feature-toggles/index.js on lines 9..15

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

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 makeAllTogglesTrue = toggles => {
  const result = { ...toggles };
  Object.keys(result).forEach(key => {
    result[key] = true;
  });
src/applications/_mock-form-ae-design-patterns/mocks/endpoints/feature-toggles/index.js on lines 10..16
src/applications/personalization/profile/mocks/endpoints/feature-toggles/index.js on lines 22..28

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

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 makeAllTogglesTrue = toggles => {
  const result = { ...toggles };
  Object.keys(result).forEach(key => {
    result[key] = true;
  });
src/applications/personalization/profile/mocks/endpoints/feature-toggles/index.js on lines 22..28
src/applications/representative-appoint/mocks/endpoints/feature-toggles/index.js on lines 9..15

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

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

        layWitnessStatementPage: {
          depends: formData =>
            formData.statementType === STATEMENT_TYPES.BUDDY_STATEMENT,
          path: 'lay-witness-statement',
          title: "There's a better way to submit your statement to us",
Severity: Major
Found in src/applications/simple-forms/21-4138/config/form.js and 6 other locations - About 1 hr to fix
src/applications/simple-forms/21-4138/config/form.js on lines 154..163
src/applications/simple-forms/21-4138/config/form.js on lines 223..232
src/applications/simple-forms/21-4138/config/form.js on lines 233..243
src/applications/simple-forms/21-4138/config/form.js on lines 255..264
src/applications/simple-forms/21-4138/config/form.js on lines 286..295
src/applications/simple-forms/21-4138/config/form.js on lines 296..305

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

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

Pending.propTypes = {
  referenceNumber: PropTypes.string.isRequired,
  status: PropTypes.string.isRequired,
  notOnUploadPage: PropTypes.bool,
  requestDate: PropTypes.number,
src/applications/check-in/components/pages/emergencyContact/EmergencyContactDisplay.jsx on lines 53..59
src/applications/lgy/coe/status/components/statuses/Pending.jsx on lines 43..49
src/applications/mhv-secure-messaging/components/ComposeForm/RecipientsSelect.jsx on lines 138..144
src/applications/vaos/components/calendar/CalendarNavigation.jsx on lines 89..95
src/applications/vaos/new-appointment/components/DateTimeSelectPage/WaitTimeAlert.jsx on lines 170..176
src/applications/vaos/appointment-list/components/NoAppointments.jsx on lines 76..82

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

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

RecipientsSelect.propTypes = {
  recipientsList: PropTypes.array.isRequired,
  onValueChange: PropTypes.func.isRequired,
  defaultValue: PropTypes.number,
  error: PropTypes.string,
src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskRed/status/components/statuses/Pending.jsx on lines 43..49
src/applications/check-in/components/pages/emergencyContact/EmergencyContactDisplay.jsx on lines 53..59
src/applications/lgy/coe/status/components/statuses/Pending.jsx on lines 43..49
src/applications/vaos/components/calendar/CalendarNavigation.jsx on lines 89..95
src/applications/vaos/new-appointment/components/DateTimeSelectPage/WaitTimeAlert.jsx on lines 170..176
src/applications/vaos/appointment-list/components/NoAppointments.jsx on lines 76..82

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

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

WaitTimeAlert.propTypes = {
  facilityId: PropTypes.string.isRequired,
  preferredDate: PropTypes.string.isRequired,
  eligibleForRequests: PropTypes.bool,
  nextAvailableApptDate: PropTypes.string,
src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskRed/status/components/statuses/Pending.jsx on lines 43..49
src/applications/check-in/components/pages/emergencyContact/EmergencyContactDisplay.jsx on lines 53..59
src/applications/lgy/coe/status/components/statuses/Pending.jsx on lines 43..49
src/applications/mhv-secure-messaging/components/ComposeForm/RecipientsSelect.jsx on lines 138..144
src/applications/vaos/components/calendar/CalendarNavigation.jsx on lines 89..95
src/applications/vaos/appointment-list/components/NoAppointments.jsx on lines 76..82

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

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

        decisionReviewPage: {
          depends: formData =>
            formData.statementType === STATEMENT_TYPES.DECISION_REVIEW,
          path: 'decision-review',
          title: 'What to know before you request a decision review',
Severity: Major
Found in src/applications/simple-forms/21-4138/config/form.js and 6 other locations - About 1 hr to fix
src/applications/simple-forms/21-4138/config/form.js on lines 144..153
src/applications/simple-forms/21-4138/config/form.js on lines 223..232
src/applications/simple-forms/21-4138/config/form.js on lines 233..243
src/applications/simple-forms/21-4138/config/form.js on lines 255..264
src/applications/simple-forms/21-4138/config/form.js on lines 286..295
src/applications/simple-forms/21-4138/config/form.js on lines 296..305

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

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

Pending.propTypes = {
  referenceNumber: PropTypes.string.isRequired,
  status: PropTypes.string.isRequired,
  notOnUploadPage: PropTypes.bool,
  requestDate: PropTypes.number,
src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskRed/status/components/statuses/Pending.jsx on lines 43..49
src/applications/check-in/components/pages/emergencyContact/EmergencyContactDisplay.jsx on lines 53..59
src/applications/mhv-secure-messaging/components/ComposeForm/RecipientsSelect.jsx on lines 138..144
src/applications/vaos/components/calendar/CalendarNavigation.jsx on lines 89..95
src/applications/vaos/new-appointment/components/DateTimeSelectPage/WaitTimeAlert.jsx on lines 170..176
src/applications/vaos/appointment-list/components/NoAppointments.jsx on lines 76..82

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

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

        hardshipsPage: {
          depends: formData =>
            formData.statementType === STATEMENT_TYPES.PRIORITY_PROCESSING,
          path: 'hardships',
          title: 'Other reasons for request',
Severity: Major
Found in src/applications/simple-forms/21-4138/config/form.js and 6 other locations - About 1 hr to fix
src/applications/simple-forms/21-4138/config/form.js on lines 144..153
src/applications/simple-forms/21-4138/config/form.js on lines 154..163
src/applications/simple-forms/21-4138/config/form.js on lines 223..232
src/applications/simple-forms/21-4138/config/form.js on lines 233..243
src/applications/simple-forms/21-4138/config/form.js on lines 286..295
src/applications/simple-forms/21-4138/config/form.js on lines 296..305

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

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

NoAppointments.propTypes = {
  showScheduleButton: PropTypes.bool.isRequired,
  startNewAppointmentFlow: PropTypes.func.isRequired,
  description: PropTypes.string,
  level: PropTypes.number,
src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskRed/status/components/statuses/Pending.jsx on lines 43..49
src/applications/check-in/components/pages/emergencyContact/EmergencyContactDisplay.jsx on lines 53..59
src/applications/lgy/coe/status/components/statuses/Pending.jsx on lines 43..49
src/applications/mhv-secure-messaging/components/ComposeForm/RecipientsSelect.jsx on lines 138..144
src/applications/vaos/components/calendar/CalendarNavigation.jsx on lines 89..95
src/applications/vaos/new-appointment/components/DateTimeSelectPage/WaitTimeAlert.jsx on lines 170..176

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

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

        claimStatusToolPage: {
          depends: formData =>
            formData.statementType === STATEMENT_TYPES.NEW_EVIDENCE,
          path: 'claim-status-tool',
          title: "There's a better way to submit new evidence",
Severity: Major
Found in src/applications/simple-forms/21-4138/config/form.js and 6 other locations - About 1 hr to fix
src/applications/simple-forms/21-4138/config/form.js on lines 144..153
src/applications/simple-forms/21-4138/config/form.js on lines 154..163
src/applications/simple-forms/21-4138/config/form.js on lines 223..232
src/applications/simple-forms/21-4138/config/form.js on lines 233..243
src/applications/simple-forms/21-4138/config/form.js on lines 255..264
src/applications/simple-forms/21-4138/config/form.js on lines 286..295

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

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

        housingRisksPage: {
          depends: formData =>
            formData.statementType === STATEMENT_TYPES.PRIORITY_PROCESSING,
          path: 'housing-risks',
          title:
Severity: Major
Found in src/applications/simple-forms/21-4138/config/form.js and 6 other locations - About 1 hr to fix
src/applications/simple-forms/21-4138/config/form.js on lines 144..153
src/applications/simple-forms/21-4138/config/form.js on lines 154..163
src/applications/simple-forms/21-4138/config/form.js on lines 223..232
src/applications/simple-forms/21-4138/config/form.js on lines 255..264
src/applications/simple-forms/21-4138/config/form.js on lines 286..295
src/applications/simple-forms/21-4138/config/form.js on lines 296..305

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

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

        personalRecordsRequestPage: {
          depends: formData =>
            formData.statementType === STATEMENT_TYPES.PERSONAL_RECORDS,
          path: 'personal-records-request',
          title: "There's a better way to request your personal records",
Severity: Major
Found in src/applications/simple-forms/21-4138/config/form.js and 6 other locations - About 1 hr to fix
src/applications/simple-forms/21-4138/config/form.js on lines 144..153
src/applications/simple-forms/21-4138/config/form.js on lines 154..163
src/applications/simple-forms/21-4138/config/form.js on lines 223..232
src/applications/simple-forms/21-4138/config/form.js on lines 233..243
src/applications/simple-forms/21-4138/config/form.js on lines 255..264
src/applications/simple-forms/21-4138/config/form.js on lines 296..305

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

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

EmergencyContactDisplay.propTypes = {
  noAction: PropTypes.func.isRequired,
  yesAction: PropTypes.func.isRequired,
  emergencyContact: PropTypes.object,
  eyebrow: PropTypes.string,
src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskRed/status/components/statuses/Pending.jsx on lines 43..49
src/applications/lgy/coe/status/components/statuses/Pending.jsx on lines 43..49
src/applications/mhv-secure-messaging/components/ComposeForm/RecipientsSelect.jsx on lines 138..144
src/applications/vaos/components/calendar/CalendarNavigation.jsx on lines 89..95
src/applications/vaos/new-appointment/components/DateTimeSelectPage/WaitTimeAlert.jsx on lines 170..176
src/applications/vaos/appointment-list/components/NoAppointments.jsx on lines 76..82

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

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

CalendarNavigation.propTypes = {
  nextOnClick: PropTypes.func.isRequired,
  prevOnClick: PropTypes.func.isRequired,
  momentMonth: PropTypes.object,
  nextDisabled: PropTypes.bool,
src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskRed/status/components/statuses/Pending.jsx on lines 43..49
src/applications/check-in/components/pages/emergencyContact/EmergencyContactDisplay.jsx on lines 53..59
src/applications/lgy/coe/status/components/statuses/Pending.jsx on lines 43..49
src/applications/mhv-secure-messaging/components/ComposeForm/RecipientsSelect.jsx on lines 138..144
src/applications/vaos/new-appointment/components/DateTimeSelectPage/WaitTimeAlert.jsx on lines 170..176
src/applications/vaos/appointment-list/components/NoAppointments.jsx on lines 76..82

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

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

        aboutPriorityProcessingPage: {
          depends: formData =>
            formData.statementType === STATEMENT_TYPES.PRIORITY_PROCESSING,
          path: 'about-priority-processing',
          title: 'What to know before you request priority processing',
Severity: Major
Found in src/applications/simple-forms/21-4138/config/form.js and 6 other locations - About 1 hr to fix
src/applications/simple-forms/21-4138/config/form.js on lines 144..153
src/applications/simple-forms/21-4138/config/form.js on lines 154..163
src/applications/simple-forms/21-4138/config/form.js on lines 233..243
src/applications/simple-forms/21-4138/config/form.js on lines 255..264
src/applications/simple-forms/21-4138/config/form.js on lines 286..295
src/applications/simple-forms/21-4138/config/form.js on lines 296..305

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

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

    case '825':
      return {
        status: 'We’re reviewing your request for a waiver or hearing.',
        nextStep: (
          <p>
src/applications/financial-status-report/constants/diary-codes/index.js on lines 194..210
src/applications/financial-status-report/constants/diary-codes/index.js on lines 506..522
src/applications/financial-status-report/constants/diary-codes/index.js on lines 523..539
src/applications/financial-status-report/constants/diary-codes/index.js on lines 557..573

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

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

        <p className="vads-u-margin-top--1">
          <a
            href="https://www.va.gov/find-forms/about-form-5655/"
            onClick={() => {
              recordEvent({
src/applications/financial-status-report/wizard/pages/Appeals.jsx on lines 45..58
src/applications/financial-status-report/wizard/pages/Disagree.jsx on lines 31..44
src/applications/financial-status-report/wizard/pages/Disagree.jsx on lines 49..62
src/applications/financial-status-report/wizard/pages/MakePayment.jsx on lines 29..42

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

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