grommet/grommet

View on GitHub
src/js/components/FormField/__tests__/FormField-test.js

Summary

Maintainability
F
6 days
Test Coverage

File FormField-test.js has 521 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import { axe } from 'jest-axe';
import 'jest-axe/extend-expect';
import 'jest-styled-components';
import React from 'react';
Severity: Major
Found in src/js/components/FormField/__tests__/FormField-test.js - About 1 day to fix

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

      test('checks that the "X characters over limit" message appears.', async () => {
        render(
          <Grommet>
            <Form validate="change">
              <FormField
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 1 other location - About 7 hrs to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 504..532

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

    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

      test('checks that the "X characters left" message appears', async () => {
        render(
          <Grommet>
            <Form validate="change">
              <FormField
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 1 other location - About 7 hrs to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 535..563

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

    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

      test('disabled', () => {
        const { container } = render(
          <Grommet>
            <FormField disabled /> {/* don't use FormField without Form */}
            <Form>
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 1 other location - About 3 hrs to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 206..217

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

    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

      test('required', () => {
        const { container } = render(
          <Grommet>
            <FormField required /> {/* don't use FormField without Form */}
            <Form>
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 1 other location - About 3 hrs to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 193..204

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

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

          <Grommet
            theme={{
              formField: {
                border: {
                  color: 'border',
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 1 other location - About 2 hrs to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 157..177

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

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

          <Grommet
            theme={{
              formField: {
                border: {
                  color: 'border',
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 1 other location - About 2 hrs to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 129..149

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

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

      test('label', () => {
        const { container } = render(
          <Grommet>
            <FormField label="test label" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 57..65
    src/js/components/FormField/__tests__/FormField-test.js on lines 67..75
    src/js/components/FormField/__tests__/FormField-test.js on lines 77..85
    src/js/components/FormField/__tests__/FormField-test.js on lines 87..95
    src/js/components/FormField/__tests__/FormField-test.js on lines 97..105
    src/js/components/FormField/__tests__/FormField-test.js on lines 107..115
    src/js/components/FormField/__tests__/FormField-test.js on lines 183..191
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

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

      test('empty margin', () => {
        const { container } = render(
          <Grommet>
            <FormField margin="none" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 47..55
    src/js/components/FormField/__tests__/FormField-test.js on lines 57..65
    src/js/components/FormField/__tests__/FormField-test.js on lines 67..75
    src/js/components/FormField/__tests__/FormField-test.js on lines 77..85
    src/js/components/FormField/__tests__/FormField-test.js on lines 87..95
    src/js/components/FormField/__tests__/FormField-test.js on lines 97..105
    src/js/components/FormField/__tests__/FormField-test.js on lines 183..191
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

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

      test('margin', () => {
        const { container } = render(
          <Grommet>
            <FormField margin="medium" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 47..55
    src/js/components/FormField/__tests__/FormField-test.js on lines 57..65
    src/js/components/FormField/__tests__/FormField-test.js on lines 67..75
    src/js/components/FormField/__tests__/FormField-test.js on lines 77..85
    src/js/components/FormField/__tests__/FormField-test.js on lines 87..95
    src/js/components/FormField/__tests__/FormField-test.js on lines 107..115
    src/js/components/FormField/__tests__/FormField-test.js on lines 183..191
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

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

      test('help', () => {
        const { container } = render(
          <Grommet>
            <FormField help="test help" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 47..55
    src/js/components/FormField/__tests__/FormField-test.js on lines 67..75
    src/js/components/FormField/__tests__/FormField-test.js on lines 77..85
    src/js/components/FormField/__tests__/FormField-test.js on lines 87..95
    src/js/components/FormField/__tests__/FormField-test.js on lines 97..105
    src/js/components/FormField/__tests__/FormField-test.js on lines 107..115
    src/js/components/FormField/__tests__/FormField-test.js on lines 183..191
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

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

      test('info', () => {
        const { container } = render(
          <Grommet>
            <FormField info="test info" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 47..55
    src/js/components/FormField/__tests__/FormField-test.js on lines 57..65
    src/js/components/FormField/__tests__/FormField-test.js on lines 67..75
    src/js/components/FormField/__tests__/FormField-test.js on lines 87..95
    src/js/components/FormField/__tests__/FormField-test.js on lines 97..105
    src/js/components/FormField/__tests__/FormField-test.js on lines 107..115
    src/js/components/FormField/__tests__/FormField-test.js on lines 183..191
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

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

      test('error', () => {
        const { container } = render(
          <Grommet>
            <FormField error="test error" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 47..55
    src/js/components/FormField/__tests__/FormField-test.js on lines 57..65
    src/js/components/FormField/__tests__/FormField-test.js on lines 77..85
    src/js/components/FormField/__tests__/FormField-test.js on lines 87..95
    src/js/components/FormField/__tests__/FormField-test.js on lines 97..105
    src/js/components/FormField/__tests__/FormField-test.js on lines 107..115
    src/js/components/FormField/__tests__/FormField-test.js on lines 183..191
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

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

      test('htmlFor', () => {
        const { container } = render(
          <Grommet>
            <FormField htmlFor="test-id" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 47..55
    src/js/components/FormField/__tests__/FormField-test.js on lines 57..65
    src/js/components/FormField/__tests__/FormField-test.js on lines 67..75
    src/js/components/FormField/__tests__/FormField-test.js on lines 77..85
    src/js/components/FormField/__tests__/FormField-test.js on lines 97..105
    src/js/components/FormField/__tests__/FormField-test.js on lines 107..115
    src/js/components/FormField/__tests__/FormField-test.js on lines 183..191
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

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

      test('custom formfield', () => {
        const { container } = render(
          <Grommet>
            <CustomFormField htmlFor="test-id" />
          </Grommet>,
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 8 other locations - About 1 hr to fix
    src/js/components/FormField/__tests__/FormField-test.js on lines 47..55
    src/js/components/FormField/__tests__/FormField-test.js on lines 57..65
    src/js/components/FormField/__tests__/FormField-test.js on lines 67..75
    src/js/components/FormField/__tests__/FormField-test.js on lines 77..85
    src/js/components/FormField/__tests__/FormField-test.js on lines 87..95
    src/js/components/FormField/__tests__/FormField-test.js on lines 97..105
    src/js/components/FormField/__tests__/FormField-test.js on lines 107..115
    src/js/components/Grid/__tests__/Grid-test.js on lines 253..261

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

    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

              <FormField
                label="label"
                validate={{ max: 10, threshold: 0.5 }}
                name="issue-description"
                htmlFor="issue-description"
    Severity: Major
    Found in src/js/components/FormField/__tests__/FormField-test.js and 1 other location - About 1 hr to fix
    src/js/components/FormField/stories/ThresholdValidation.js on lines 10..21

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

    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