department-of-veterans-affairs/vets-website

View on GitHub
src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js

Summary

Maintainability
F
3 days
Test Coverage

File index.unit.spec.js has 822 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from 'react';
import { Route } from 'react-router-dom';
import { expect } from 'chai';
import sinon from 'sinon';
import moment from 'moment';

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

        mockAppointmentSlotFetch({
          clinicId: '308',
          facilityId: '983',
          preferredDate,
          response: [
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 565..579
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 810..824

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

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

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

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

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

    Refactorings

    Further Reading

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

        mockAppointmentSlotFetch({
          clinicId: '308',
          facilityId: '983',
          preferredDate,
          response: [
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 262..276
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 565..579

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

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

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

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

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

    Refactorings

    Further Reading

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

        mockAppointmentSlotFetch({
          clinicId: '308',
          facilityId: '983',
          preferredDate,
          response: [
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 262..276
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 810..824

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

    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

        if (!button) {
          userEvent.click(screen.getByText(/^Next/));
          button = await screen.findByLabelText(
            new RegExp(slot308Date.format('dddd, MMMM Do'), 'i'),
          );
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 233..238
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 367..372
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 482..487

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

    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

        if (!button) {
          userEvent.click(screen.getByText(/^Next/));
          button = await screen.findByLabelText(
            new RegExp(slot309Date.format('dddd, MMMM Do'), 'i'),
          );
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 233..238
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 313..318
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 482..487

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

    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

        if (!button) {
          userEvent.click(screen.getByText(/^Next/));
          button = await screen.findByLabelText(
            new RegExp(slot308Date.format('dddd, MMMM Do'), 'i'),
          );
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 233..238
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 313..318
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 367..372

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

    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

      mockEligibilityFetches({
        facilityId: '983',
        typeOfCareId,
        limit: true,
        directPastVisits: true,
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 58..65

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

    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

      mockEligibilityFetches({
        facilityId: '983',
        typeOfCareId,
        limit: true,
        requestPastVisits: true,
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 66..73

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

    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

    const initialState = {
      featureToggles: {
        vaOnlineSchedulingDirect: true,
      },
      user: {
    src/applications/vaos/covid-19-vaccine/components/ClinicChoicePage.unit.spec.js on lines 18..27
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 21..30
    src/applications/vaos/new-appointment/components/ClinicChoicePage/index.unit.spec.js on lines 19..28
    src/applications/vaos/new-appointment/components/TypeOfAudiologyCarePage.unit.spec.js on lines 18..27
    src/applications/vaos/new-appointment/components/TypeOfEyeCarePage.unit.spec.js on lines 24..33
    src/applications/vaos/new-appointment/components/TypeOfSleepCarePage.unit.spec.js on lines 17..26
    src/applications/vaos/new-appointment/components/VAFacilityPage/VAFacilityPageV2.unit.spec.js on lines 1063..1072

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

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

        await waitFor(() =>
          expect(screen.history.push.firstCall.args[0]).to.equal(
            '/new-appointment/request-date',
          ),
        );
    src/applications/vaos/appointment-list/components/AppointmentsPage/index.unit.spec.js on lines 94..96
    src/applications/vaos/covid-19-vaccine/components/ClinicChoicePage.unit.spec.js on lines 94..98
    src/applications/vaos/covid-19-vaccine/components/SecondDosePage.unit.spec.js on lines 117..121
    src/applications/vaos/covid-19-vaccine/components/VAFacilityPage/index.unit.spec.js on lines 629..633
    src/applications/vaos/new-appointment/components/ClinicChoicePage/index.unit.spec.js on lines 155..159
    src/applications/vaos/new-appointment/components/ClinicChoicePage/index.unit.spec.js on lines 233..237
    src/applications/vaos/new-appointment/components/TypeOfCarePage/index.unit.spec.js on lines 151..155
    src/applications/vaos/new-appointment/components/TypeOfCarePage/index.unit.spec.js on lines 170..174
    src/applications/vaos/new-appointment/components/TypeOfCarePage/index.unit.spec.js on lines 435..439
    src/applications/vaos/new-appointment/components/VAFacilityPage/VAFacilityPageV2.eligibility.unit.spec.js on lines 735..739
    src/applications/vaos/new-appointment/components/VAFacilityPage/VAFacilityPageV2.unit.spec.js on lines 1324..1328

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

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

        await waitFor(() => {
          expect(screen.history.push.called).to.be.true;
        });
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 92..94
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 247..249
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 466..468
    src/applications/vaos/new-appointment/components/ContactInfoPage.unit.spec.js on lines 152..154
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 175..177
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 201..203
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 422..424
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 165..167
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 328..330

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

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

        await waitFor(() => {
          expect(screen.history.push.called).to.be.true;
        });
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 92..94
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 247..249
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 466..468
    src/applications/vaos/new-appointment/components/ContactInfoPage.unit.spec.js on lines 152..154
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 175..177
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 201..203
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 422..424
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 165..167
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 991..993

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

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

        await waitFor(() => {
          expect(screen.history.push.called).to.be.true;
        });
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 92..94
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 247..249
    src/applications/vaos/covid-19-vaccine/components/SelectDate1Page.unit.spec.js on lines 466..468
    src/applications/vaos/new-appointment/components/ContactInfoPage.unit.spec.js on lines 152..154
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 175..177
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 201..203
    src/applications/vaos/new-appointment/components/DateTimeRequestPage/index.unit.spec.js on lines 422..424
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 328..330
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 991..993

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

    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

        await waitFor(() => {
          expect(slotElements[3]).to.have.class('vaos-u-border-radius--top-right');
        });
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 539..541

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

    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

        await waitFor(() => {
          expect(slotElements[2]).to.have.class('vaos-u-border-radius--top-right');
        });
    src/applications/vaos/new-appointment/components/DateTimeSelectPage/index.unit.spec.js on lines 520..522

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

    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