department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medications/components/shared/StatusDropdown.jsx

Summary

Maintainability
F
6 days
Test Coverage

Function StatusDropdown has 323 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const StatusDropdown = props => {
  const { status } = props;

  const content = () => {
    switch (status) {
Severity: Major
Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 1 day to fix

    Function content has 319 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const content = () => {
        switch (status) {
          case dispStatusObj.active: {
            const dropdownContent = () => {
              return (
    Severity: Major
    Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 1 day to fix

      File StatusDropdown.jsx has 332 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import React from 'react';
      import PropTypes from 'prop-types';
      import { dispStatusObj } from '../../util/constants';
      
      const StatusDropdown = props => {
      Severity: Minor
      Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 4 hrs to fix

        Function dropdownContent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                const dropdownContent = () => {
                  return (
                    <>
                      <p
                        className="vads-u-padding-bottom--1"

          Function dropdownContent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  const dropdownContent = () => {
                    return (
                      <>
                        <p className="vads-u-padding-bottom--1">
                          A VA provider added this medication record in your VA medical

            Avoid too many return statements within this function.
            Open

                    return (
                      <>
                        <p data-testid="status">Active: Refill in process</p>
                        <va-additional-info uswds trigger="What does this status mean?">
                          {dropdownContent()}
            Severity: Major
            Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return (
                        <>
                          <p data-testid="status">Transferred</p>
                          <va-additional-info
                            uswds
              Severity: Major
              Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return (
                          <>
                            <p data-testid="status">Discontinued</p>
                            <va-additional-info
                              uswds
                Severity: Major
                Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return (
                            <>
                              <p data-testid="status">Active: Submitted</p>
                              <va-additional-info
                                uswds
                  Severity: Major
                  Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return (
                              <>
                                <p data-testid="status">Unknown</p>
                                <va-additional-info
                                  uswds
                    Severity: Major
                    Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return (
                                <>
                                  <p data-testid="status">Expired</p>
                                  <va-additional-info
                                    uswds
                      Severity: Major
                      Found in src/applications/mhv-medications/components/shared/StatusDropdown.jsx - About 30 mins to fix

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

                                      <ul className="vads-u-padding-bottom--1">
                                        <li className="vads-u-margin-bottom--0">
                                          Prescriptions you filled through a non-VA pharmacy
                                        </li>
                                        <li className="vads-u-margin-bottom--0">
                        src/applications/financial-status-report/components/alerts/Alerts.jsx on lines 36..53
                        src/applications/mhv-medications/components/PrescriptionDetails/PrescriptionPrintOnly.jsx on lines 39..53

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

                        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

                                      <ul className="vads-u-padding-bottom--1">
                                        <li className="vads-u-margin-bottom--0">
                                          We’re not sure when you’ll need to fill this prescription,{' '}
                                          <strong>or</strong>
                                        </li>
                        src/applications/gi/components/profile/GettingStartedWithBenefits.jsx on lines 75..88

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Active</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 116..127
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 150..161
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 209..220
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 237..248
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 272..283
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 293..304
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 318..329

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Active: Submitted</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 28..39
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 116..127
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 150..161
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 209..220
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 272..283
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 293..304
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 318..329

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Active: Parked</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 28..39
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 150..161
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 209..220
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 237..248
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 272..283
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 293..304
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 318..329

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Unknown</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 28..39
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 116..127
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 150..161
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 209..220
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 237..248
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 272..283
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 293..304

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Transferred</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 28..39
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 116..127
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 150..161
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 209..220
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 237..248
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 272..283
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 318..329

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Active: On hold</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 28..39
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 116..127
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 209..220
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 237..248
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 272..283
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 293..304
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 318..329

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Expired</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 28..39
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 116..127
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 150..161
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 209..220
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 237..248
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 293..304
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 318..329

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

                        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

                                return (
                                  <>
                                    <p data-testid="status">Discontinued</p>
                                    <va-additional-info
                                      uswds
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 28..39
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 116..127
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 150..161
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 237..248
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 272..283
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 293..304
                        src/applications/mhv-medications/components/shared/StatusDropdown.jsx on lines 318..329

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

                        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

                                const dropdownContent = () => {
                                  return (
                                    <div data-testid="unknown-status-definition">
                                      <p>
                                        There’s a problem with our system. You can’t manage this
                        src/platform/user/authorization/components/RequiredLoginView.jsx on lines 29..36

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

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

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

                                      <ul>
                                        <li>
                                          You told us you have too much of this medication or supply,{' '}
                                          <strong>or</strong>
                                        </li>
                        src/applications/claims-status/components/StemDeniedDetails.jsx on lines 96..105
                        src/applications/coronavirus-screener/config/questions.jsx on lines 185..191
                        src/applications/enrollment-verification/containers/EnrollmentVerificationIntroPage.jsx on lines 127..133
                        src/applications/pensions/config/chapters/06-additional-information/supportingDocuments.js on lines 185..196
                        src/applications/simple-forms/20-10207/containers/IntroductionPage.jsx on lines 125..131
                        src/applications/simple-forms/21-0966/containers/IntroductionPage.jsx on lines 37..48

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

                        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

                                const dropdownContent = () => {
                                  return (
                                    <>
                                      <p data-testid="submitted-status-definition">
                                        We got your request to fill or refill this prescription. We’ll
                        src/applications/static-pages/dependency-verification/components/dependencyVerificationHeader.jsx on lines 3..16

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

                        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