department-of-veterans-affairs/vets-website

View on GitHub
src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js

Summary

Maintainability
F
1 mo
Test Coverage

File messageDetails.js has 1793 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const { sub, formatISO } = require('date-fns');

const messageDetails = {
  data: [
    {
Severity: Major
Found in src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js - About 4 days to fix

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

        {
          id: '3258313',
          type: 'message_details',
          attributes: {
            messageId: 3258313,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 34..62
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 92..120
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 150..178

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 157.

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

        {
          id: '3549585',
          type: 'message_details',
          attributes: {
            messageId: 3549585,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 34..62
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 150..178
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 179..207

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

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

        {
          id: '3400519',
          type: 'message_details',
          attributes: {
            messageId: 3400519,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 34..62
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 92..120
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 179..207

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

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

        {
          id: '3550426',
          type: 'message_details',
          attributes: {
            messageId: 3550426,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 92..120
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 150..178
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 179..207

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

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

        {
          id: '3004370',
          type: 'message_details',
          attributes: {
            messageId: 3004370,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 391..430

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

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

        {
          id: '3004676',
          type: 'message_details',
          attributes: {
            messageId: 3004676,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 952..991

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

    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: '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: '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: '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: '3579883',
          type: 'message_details',
          attributes: {
            messageId: 3579883,
    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 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: '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: '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: '3004681',
          type: 'message_details',
          attributes: {
            messageId: 3004681,
    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 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: '2993398',
          type: 'message_details',
          attributes: {
            messageId: 2993398,
    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 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: '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: '2991843',
          type: 'message_details',
          attributes: {
            messageId: 2991843,
    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 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 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
    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: '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: '3579883',
          type: 'message_details',
          attributes: {
            messageId: 3579883,
    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 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: '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

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

        {
          id: '3813790',
          type: 'message_details',
          attributes: {
            messageId: 3813790,
    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 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: '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: '3033876',
          type: 'message_details',
          attributes: {
            messageId: 3033876,
    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 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
    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

    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: '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

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

        {
          id: '3885180',
          type: 'message_details',
          attributes: {
            messageId: 3885180,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 770..798
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1021..1049
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1050..1078
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1079..1107
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1108..1136

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

        {
          id: '3064900',
          type: 'message_details',
          attributes: {
            messageId: 3064900,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 992..1020
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1021..1049
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1050..1078
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1079..1107
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1108..1136

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

        {
          id: '3549581',
          type: 'message_details',
          attributes: {
            messageId: 3549581,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 770..798
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 992..1020
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1021..1049
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1050..1078
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1108..1136

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

        {
          id: '3109074',
          type: 'message_details',
          attributes: {
            messageId: 3109074,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 770..798
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 992..1020
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1021..1049
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1050..1078
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1079..1107

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

        {
          id: '3623589',
          type: 'message_details',
          attributes: {
            messageId: 3623589,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 770..798
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 992..1020
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1050..1078
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1079..1107
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1108..1136

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

        {
          id: '3550443',
          type: 'message_details',
          attributes: {
            messageId: 3550443,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 770..798
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 992..1020
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1021..1049
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1079..1107
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1108..1136

    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: '3004667',
          type: 'message_details',
          attributes: {
            messageId: 3004667,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004641',
          type: 'message_details',
          attributes: {
            messageId: 3004641,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004593',
          type: 'message_details',
          attributes: {
            messageId: 3004593,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3580308',
          type: 'message_details',
          attributes: {
            messageId: 3580308,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3550426',
          type: 'message_details',
          attributes: {
            messageId: 3550426,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004551',
          type: 'message_details',
          attributes: {
            messageId: 3004551,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004605',
          type: 'message_details',
          attributes: {
            messageId: 3004605,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3549585',
          type: 'message_details',
          attributes: {
            messageId: 3549585,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664

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

    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: '3258248',
          type: 'message_details',
          attributes: {
            messageId: 3258248,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004624',
          type: 'message_details',
          attributes: {
            messageId: 3004624,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004387',
          type: 'message_details',
          attributes: {
            messageId: 3004387,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004701',
          type: 'message_details',
          attributes: {
            messageId: 3004701,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004661',
          type: 'message_details',
          attributes: {
            messageId: 3004661,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3805313',
          type: 'message_details',
          attributes: {
            messageId: 3805313,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004565',
          type: 'message_details',
          attributes: {
            messageId: 3004565,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004688',
          type: 'message_details',
          attributes: {
            messageId: 3004688,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004632',
          type: 'message_details',
          attributes: {
            messageId: 3004632,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 799..829
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

    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: '3004527',
          type: 'message_details',
          attributes: {
            messageId: 3004527,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 237..266
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 267..297
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 329..359
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 431..461
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 462..492
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 493..523
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 524..552
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 553..583
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 584..614
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 615..645
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 677..707
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 708..738
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 890..920
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1402..1430
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1489..1519
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1636..1664
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 1694..1722

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

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

        {
          id: '3004545',
          type: 'message_details',
          attributes: {
            messageId: 3004545,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 646..676

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

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

        {
          id: '3004581',
          type: 'message_details',
          attributes: {
            messageId: 3004581,
    src/platform/mhv/api/mocks/secure-messaging/messages/messageDetails.js on lines 739..769

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

    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

    There are no issues that match your filters.

    Category
    Status