department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,805 of 12,805 total issues

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

      {
        fileNumber: '796121200',
        payeeNumber: '00',
        personEntitled: 'AJOHNS',
        deductionCode: '74',
src/applications/personalization/dashboard/mocks/debts/index.js on lines 39..75

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

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

      <div className="form-review-panel-page">
        <div className="form-review-panel-page-header-row">
          <h4 className="form-review-panel-page-header vads-u-font-size--h5">
            {title}
          </h4>
src/applications/financial-status-report/components/bankruptcy/BankruptcyQuestionReview.jsx on lines 30..42

Duplicated Code

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

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

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

Tuning

This issue has a mass of 131.

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

File EvidenceRecords.jsx has 365 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';

import {
Severity: Minor
Found in src/applications/appeals/testing/sc/components/EvidenceRecords.jsx - About 4 hrs to fix

    Function ChooseCommunityCare has 119 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function ChooseCommunityCare() {
      const history = useHistory();
    
      const [providers, setProviders] = useState([
        {
    Severity: Major
    Found in src/applications/vaos/referral-appointments/ChooseCommunityCare.jsx - About 4 hrs to fix

      Function render has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
      Open

        render() {
          const {
            value: items,
            id,
            options,

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

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

      Severity
      Category
      Status
      Source
      Language