department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,804 of 12,804 total issues

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

    {
      id: '3004695',
      type: 'message_details',
      attributes: {
        messageId: 3004695,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3579897',
      type: 'message_details',
      attributes: {
        messageId: 3579897,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3550437',
      type: 'message_details',
      attributes: {
        messageId: 3550437,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '2993392',
      type: 'message_details',
      attributes: {
        messageId: 2993392,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3549574',
      type: 'message_details',
      attributes: {
        messageId: 3549574,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635

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

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

    {
      id: '3580278',
      type: 'message_details',
      attributes: {
        messageId: 3580278,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3004416',
      type: 'message_details',
      attributes: {
        messageId: 3004416,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3004379',
      type: 'message_details',
      attributes: {
        messageId: 3004379,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3805296',
      type: 'message_details',
      attributes: {
        messageId: 3805296,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3549574',
      type: 'message_details',
      attributes: {
        messageId: 3549574,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3258261',
      type: 'message_details',
      attributes: {
        messageId: 3258261,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1549..1577
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

    {
      id: '3579897',
      type: 'message_details',
      attributes: {
        messageId: 3579897,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 5..33
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 121..149
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 208..236
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 298..328
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 360..390
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 830..860
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 921..951
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1137..1165
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1166..1194
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1195..1223
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1224..1254
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1284..1312
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1431..1459
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1520..1548
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1578..1606
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1607..1635
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1723..1751

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

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

      if (hasResidentialCoordinates && facilities.length) {
        facilities = facilities
          .map(facility => {
            const distanceFromResidentialAddress = distanceBetween(
              address.latitude,
Severity: Major
Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js and 2 other locations - About 4 hrs to fix
src/applications/vaos/covid-19-vaccine/redux/reducer.js on lines 486..505
src/applications/vaos/new-appointment/redux/reducer.js on lines 300..319

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

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

      if (hasResidentialCoordinates && facilities.length) {
        facilities = facilities
          .map(facility => {
            const distanceFromResidentialAddress = distanceBetween(
              address.latitude,
Severity: Major
Found in src/applications/vaos/covid-19-vaccine/redux/reducer.js and 2 other locations - About 4 hrs to fix
src/applications/vaos/covid-19-vaccine/redux/reducer.js on lines 183..202
src/applications/vaos/new-appointment/redux/reducer.js on lines 300..319

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

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

    {
      id: '3619280',
      type: 'message_details',
      attributes: {
        messageId: 3619280,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 63..91
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 861..889
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1255..1283
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1313..1343
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1344..1372
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1373..1401
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1665..1693

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

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

    {
      id: '3549590',
      type: 'message_details',
      attributes: {
        messageId: 3549590,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 63..91
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 861..889
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1255..1283
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1313..1343
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1344..1372
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1373..1401
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1460..1488

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

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

    {
      id: '3805616',
      type: 'message_details',
      attributes: {
        messageId: 3805616,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 63..91
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 861..889
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1255..1283
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1313..1343
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1373..1401
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1460..1488
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1665..1693

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

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

      if (hasResidentialCoordinates && facilities.length) {
        facilities = facilities
          .map(facility => {
            const distanceFromResidentialAddress = distanceBetween(
              address.latitude,
Severity: Major
Found in src/applications/vaos/new-appointment/redux/reducer.js and 2 other locations - About 4 hrs to fix
src/applications/vaos/covid-19-vaccine/redux/reducer.js on lines 183..202
src/applications/vaos/covid-19-vaccine/redux/reducer.js on lines 486..505

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

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

    {
      id: '2991856',
      type: 'message_details',
      attributes: {
        messageId: 2991856,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 63..91
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 861..889
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1313..1343
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1344..1372
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1373..1401
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1460..1488
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1665..1693

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

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

    {
      id: '3805610',
      type: 'message_details',
      attributes: {
        messageId: 3805610,
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 63..91
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 861..889
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1255..1283
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1313..1343
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1344..1372
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1460..1488
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1665..1693

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

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