sanger/limber

View on GitHub

Showing 187 of 187 total issues

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

  {
    "resource": "asset_audit",
    "attributes": {
      "key": "",
      "message": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "from_plate_to_specific_tubes_by_pool",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "from_plate_to_tube_by_submission",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "between_plate",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "between_specific_tube",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "transfer",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "between_plates_by_submission",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "from_plate_to_tube",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "from_plate_to_specific_tube",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 217..229
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

  {
    "resource": "from_plate_to_tube_by_multiplex",
    "attributes": {
      "uuid": "",
      "source_uuid": "",
Severity: Major
Found in app/frontend/javascript/shared/resources.js and 11 other locations - About 40 mins to fix
app/frontend/javascript/shared/resources.js on lines 57..69
app/frontend/javascript/shared/resources.js on lines 97..109
app/frontend/javascript/shared/resources.js on lines 110..122
app/frontend/javascript/shared/resources.js on lines 123..135
app/frontend/javascript/shared/resources.js on lines 136..148
app/frontend/javascript/shared/resources.js on lines 149..161
app/frontend/javascript/shared/resources.js on lines 191..203
app/frontend/javascript/shared/resources.js on lines 204..216
app/frontend/javascript/shared/resources.js on lines 230..242
app/frontend/javascript/shared/resources.js on lines 243..255
app/frontend/javascript/shared/resources.js on lines 951..963

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

const exampleChromiumParentUsedOligos = {
  1: {
    'AAAAAAAT:GGGGGGGT:TTTTTTTA:CCCCCCCA': ['submission'],
    'TTTTTTTA:CCCCCCCA:AAAAAAAT:GGGGGGGT': ['submission'],
    'AAAAAAAC:GGGGGGGC:TTTTTTTG:CCCCCCCG': ['submission'],
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 704..712

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

const exampleParentUsedOligos = {
  1: {
    'AAAAAAAT:GGGGGGGT': ['submission'],
    'TTTTTTTA:CCCCCCCA': ['submission'],
    'AAAAAAAC:GGGGGGGC': ['submission'],
app/frontend/javascript/custom-tagged-plate/testData/customTaggedPlateTestData.js on lines 714..722

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

Function isValidChildUsedOligoParameters has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  parentUsedOligos,
  parentWellSubmDetails,
  tagLayout,
  tagSubstitutions,
  tagGroupOligos
Severity: Minor
Found in app/frontend/javascript/custom-tagged-plate/tagClashFunctions.js - About 35 mins to fix

    Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def initialize(name, options, store, submission_templates, label_template_config)
    Severity: Minor
    Found in lib/purpose_config.rb - About 35 mins to fix

      Method primary_index has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        def primary_index(row, column, scale, height, _width)
      Severity: Minor
      Found in app/models/limber/tag_layout_template/in_columns.rb - About 35 mins to fix

        Method primary_index has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def primary_index(row, column, scale, _height, width)
        Severity: Minor
        Found in app/models/limber/tag_layout_template/in_rows.rb - About 35 mins to fix

          Method primary_index has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            def primary_index(row, column, scale, height, width)
          Severity: Minor
          Found in app/models/limber/tag_layout_template/in_inverse_rows.rb - About 35 mins to fix

            Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def initialize(type, target_state = 'passed', verify_robot = false, require_robot = false, &block)
            Severity: Minor
            Found in lib/robot_configuration.rb - About 35 mins to fix

              Function extractChildUsedOligos has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function extractChildUsedOligos(parentUsedOligos, parentWellSubmDetails, tagLayout, tagSubstitutions, tagGroupOligos) {
              Severity: Minor
              Found in app/frontend/javascript/custom-tagged-plate/tagClashFunctions.js - About 35 mins to fix

                Method load has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  def self.load(name, options, store, submission_templates, label_template_config)
                Severity: Minor
                Found in lib/purpose_config.rb - About 35 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language