sanger/limber

View on GitHub

Showing 187 of 187 total issues

File resources.js has 1217 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Auto-generated by Sequencescape on 2024-09-04 17:09:09 +0100"
 * Using develop-Y24-190@8b0e5a6
 * bundle exec rake devour:create_config"
 *
Severity: Major
Found in app/frontend/javascript/shared/resources.js - About 3 days to fix

    File customTaggedPlateTestData.js has 789 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    const plateUuid = 'afabla7e-9498-42d6-964e-50f61ded6d9a'
    
    const exampleParent = {
      id: '1',
      uuid: plateUuid,

      Class PlateSplitToTubeRacks has 60 methods (exceeds 20 allowed). Consider refactoring.
      Open

        class PlateSplitToTubeRacks < Base
          include LabwareCreators::CustomPage
          include SupportParent::PlateOnly
      
          self.page = 'plate_split_to_tube_racks'
      Severity: Major
      Found in app/models/labware_creators/plate_split_to_tube_racks.rb - About 1 day to fix

        Function sharedSpecs has 174 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const sharedSpecs = (args) => {
          const subject = args.subject
          const mockLocation = {}
        
          describe('a MultiStamp instance', () => {

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

          document.addEventListener('DOMContentLoaded', () => {
            if (document.getElementById('validate-paired-tubes')) {
              axios.defaults.headers.common['X-CSRF-Token'] = document
                .querySelector('meta[name="csrf-token"]')
                .getAttribute('content')
          Severity: Major
          Found in app/frontend/javascript/validate-paired-tubes/index.js and 1 other location - About 5 hrs to fix
          app/frontend/javascript/tubes-to-rack/index.js on lines 19..39

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

          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

          document.addEventListener('DOMContentLoaded', () => {
            if (document.getElementById('tubes-to-rack-page')) {
              axios.defaults.headers.common['X-CSRF-Token'] = document
                .querySelector('meta[name="csrf-token"]')
                .getAttribute('content')
          Severity: Major
          Found in app/frontend/javascript/tubes-to-rack/index.js and 1 other location - About 5 hrs to fix
          app/frontend/javascript/validate-paired-tubes/index.js on lines 19..39

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

          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 checkDuplicates = (tubeList) => {
            return (tube) => {
              let occurrences = 0
              for (let i = 0; i < tubeList.length; i++) {
                if (tubeList[i] && tube && tubeList[i].uuid === tube.uuid) {
          app/frontend/javascript/shared/components/plateScanValidators.js on lines 68..85

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 130.

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

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

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

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

          Refactorings

          Further Reading

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

          const checkDuplicates = (plateList) => {
            return (plate) => {
              let occurrences = 0
              for (let i = 0; i < plateList.length; i++) {
                if (plateList[i] && plate && plateList[i].uuid === plate.uuid) {
          app/frontend/javascript/shared/components/tubeScanValidators.js on lines 55..72

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 130.

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

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

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

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

          Refactorings

          Further Reading

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

            if (document.getElementById('multi-stamp-tubes-page')) {
              axios.defaults.headers.common['X-CSRF-Token'] = document
                .querySelector('meta[name="csrf-token"]')
                .getAttribute('content')
              Vue.prototype.$axios = axios
          Severity: Major
          Found in app/frontend/javascript/multi-stamp-tubes/index.js and 1 other location - About 4 hrs to fix
          app/frontend/javascript/multi-stamp/index.js on lines 59..79

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

          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

            if (document.getElementById('multi-stamp-library-splitter-page')) {
              axios.defaults.headers.common['X-CSRF-Token'] = document
                .querySelector('meta[name="csrf-token"]')
                .getAttribute('content')
              Vue.prototype.$axios = axios
          Severity: Major
          Found in app/frontend/javascript/multi-stamp/index.js and 1 other location - About 4 hrs to fix
          app/frontend/javascript/multi-stamp-tubes/index.js on lines 20..40

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

          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

            setState: function (state) {
              for (let i = 0; i < this.states.length; i += 1) {
                if (state === this.states[i]) {
                  this.listElement.addClass(this.states[i] + '-tube')
                } else {
          Severity: Major
          Found in app/frontend/entrypoints/pages/multi_tube_pooling.js and 1 other location - About 4 hrs to fix
          app/frontend/entrypoints/pages/multi_tube_pooling.js on lines 114..122

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

          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

            setState: function (state) {
              for (let i = 0; i < this.states.length; i += 1) {
                if (state === this.states[i]) {
                  this.listElement.addClass(this.states[i] + '-tube')
                } else {
          Severity: Major
          Found in app/frontend/entrypoints/pages/multi_tube_pooling.js and 1 other location - About 4 hrs to fix
          app/frontend/entrypoints/pages/multi_tube_pooling.js on lines 25..33

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

          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

              {
                id: '2',
                position: { name: 'A2' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          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

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

              {
                id: '3',
                position: { name: 'A3' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 39..65
          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 9 locations. Consider refactoring.
          Open

              {
                id: '1',
                position: { name: 'A1' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          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 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 9 locations. Consider refactoring.
          Open

              {
                id: '2',
                position: { name: 'A2' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          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 9 locations. Consider refactoring.
          Open

              {
                id: '4',
                position: { name: 'A4' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          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 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 9 locations. Consider refactoring.
          Open

              {
                id: '3',
                position: { name: 'A3' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          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 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 9 locations. Consider refactoring.
          Open

              {
                id: '4',
                position: { name: 'A4' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          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 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 9 locations. Consider refactoring.
          Open

              {
                id: '1',
                position: { name: 'A1' },
                poolIndex: 1,
                aliquots: [
          app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 12..38
          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 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

          Severity
          Category
          Status
          Source
          Language