sanger/limber

View on GitHub

Showing 187 of 187 total issues

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

    {
      id: '1',
      position: { name: 'A1' },
      poolIndex: 1,
      aliquots: [
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 39..65
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 66..92
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 93..119
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 340..366
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 373..399
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 400..426
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 439..465
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 466..492

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

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

function byInverseColumns(wells, plateDims, tagsPerWell, walker) {
  return wells
    .sort(compareWellsByColumn)
    .reverse()
    .reduce((acc, well, relIndex) => {
app/frontend/javascript/custom-tagged-plate/tagLayoutFunctions.js on lines 76..86

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

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

function byInverseRows(wells, plateDims, tagsPerWell, walker) {
  return wells
    .sort(compareWellsByRow)
    .reverse()
    .reduce((acc, well, relIndex) => {
app/frontend/javascript/custom-tagged-plate/tagLayoutFunctions.js on lines 96..106

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

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

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

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

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

Refactorings

Further Reading

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

    {
      id: '3',
      position: { name: 'A3' },
      poolIndex: 2,
      aliquots: [
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 519..544

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

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

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

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

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

Refactorings

Further Reading

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

    {
      id: '4',
      position: { name: 'A4' },
      poolIndex: 2,
      aliquots: [
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 493..518

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

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

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

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

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

Refactorings

Further Reading

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

    {
      id: '3',
      position: { name: 'A3' },
      poolIndex: 1,
      aliquots: [
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 132..152
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 153..173
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 195..215

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

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

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

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

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

Refactorings

Further Reading

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

    {
      id: '4',
      position: { name: 'A4' },
      poolIndex: 1,
      aliquots: [
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 132..152
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 153..173
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 174..194

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

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

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

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

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

Refactorings

Further Reading

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

    {
      id: '2',
      position: { name: 'A2' },
      poolIndex: 1,
      aliquots: [
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 132..152
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 174..194
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 195..215

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

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

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

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

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

Refactorings

Further Reading

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

    {
      id: '1',
      position: { name: 'A1' },
      poolIndex: 1,
      aliquots: [
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 153..173
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 174..194
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 195..215

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

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

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

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

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

Refactorings

Further Reading

File plate_split_to_tube_racks.rb has 328 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require_dependency 'form'
require_dependency 'labware_creators/base'

module LabwareCreators
  # Handles the creation of up to 2 child racks of tubes from a single parent 96-well plate.
Severity: Minor
Found in app/models/labware_creators/plate_split_to_tube_racks.rb - About 3 hrs to fix

    Class StampedPlateAddingRandomisedControls has 30 methods (exceeds 20 allowed). Consider refactoring.
    Open

      class StampedPlateAddingRandomisedControls < StampedPlate # rubocop:todo Metrics/ClassLength
        PARENT_PLATE_INCLUDES =
          'wells.requests_as_source,wells.requests_as_source.request_type,' \
            'wells.aliquots,wells.aliquots.sample,wells.aliquots.sample.sample_metadata'
    
    

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

      const checkMinCountRequests = (minWellsWithRequests) => {
        return (plate) => {
          const numWellsWithRequest = filterWellsWithLibraryCreationRequests(plate.wells).length
          if (numWellsWithRequest < minWellsWithRequests) {
            return {
      app/frontend/javascript/shared/components/plateScanValidators.js on lines 165..181

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

      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 checkMaxCountRequests = (maxWellsWithRequests) => {
        return (plate) => {
          const numWellsWithRequest = filterWellsWithLibraryCreationRequests(plate.wells).length
          if (numWellsWithRequest > maxWellsWithRequests) {
            return {
      app/frontend/javascript/shared/components/plateScanValidators.js on lines 192..208

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

      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 WELLS_IN_COLUMN_MAJOR_ORDER = [
        'A1',
        'B1',
        'C1',
        'D1',
      Severity: Major
      Found in app/frontend/entrypoints/pages/multi_plate_pooling.js and 1 other location - About 3 hrs to fix
      app/frontend/javascript/pipeline-graph/colourMapping.js on lines 4..101

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

      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 distinctColours = [
        '#FFFF00',
        '#1CE6FF',
        '#FF34FF',
        '#FF4A46',
      Severity: Major
      Found in app/frontend/javascript/pipeline-graph/colourMapping.js and 1 other location - About 3 hrs to fix
      app/frontend/entrypoints/pages/multi_plate_pooling.js on lines 4..101

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

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

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

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

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

      Refactorings

      Further Reading

      File multi_plate_pooling.js has 293 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import $ from 'jquery'
      import SCAPE from '@/javascript/lib/global_message_system.js'
      
      const WELLS_IN_COLUMN_MAJOR_ORDER = [
        'A1',
      Severity: Minor
      Found in app/frontend/entrypoints/pages/multi_plate_pooling.js - About 3 hrs to fix

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

            {
              id: '3',
              position: { name: 'A3' },
              poolIndex: 1,
              aliquots: [
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 228..252
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 253..277
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 303..327

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

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

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

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

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

        Refactorings

        Further Reading

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

            {
              id: '1',
              position: { name: 'A1' },
              poolIndex: 1,
              aliquots: [
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 253..277
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 278..302
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 303..327

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

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

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

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

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

        Refactorings

        Further Reading

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

            {
              id: '2',
              position: { name: 'A2' },
              poolIndex: 1,
              aliquots: [
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 228..252
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 278..302
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 303..327

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

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

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

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

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

        Refactorings

        Further Reading

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

            {
              id: '4',
              position: { name: 'A4' },
              poolIndex: 1,
              aliquots: [
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 228..252
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 253..277
        app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 278..302

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

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

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

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

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

        Refactorings

        Further Reading

        Severity
        Category
        Status
        Source
        Language