sanger/limber

View on GitHub
app/frontend/javascript/shared/resources.js

Summary

Maintainability
F
5 days
Test Coverage

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

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

      {
        "resource": "asset",
        "attributes": {
          "uuid": "",
          "custom_metadatum_collection": {
    Severity: Major
    Found in app/frontend/javascript/shared/resources.js and 1 other location - About 1 hr to fix
    app/frontend/javascript/shared/resources.js on lines 602..617

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

    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

      {
        "resource": "racked_tube",
        "attributes": {
          "coordinate": "",
          "tube": {
    Severity: Major
    Found in app/frontend/javascript/shared/resources.js and 1 other location - About 1 hr to fix
    app/frontend/javascript/shared/resources.js on lines 70..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 56.

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

      {
        "resource": "plate_purpose",
        "attributes": {
          "name": "",
          "stock_plate": "",
    Severity: Major
    Found in app/frontend/javascript/shared/resources.js and 2 other locations - About 55 mins to fix
    app/frontend/javascript/shared/resources.js on lines 392..405
    app/frontend/javascript/shared/resources.js on lines 848..861

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

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

      {
        "resource": "pick_list",
        "attributes": {
          "created_at": "",
          "updated_at": "",
    Severity: Major
    Found in app/frontend/javascript/shared/resources.js and 2 other locations - About 55 mins to fix
    app/frontend/javascript/shared/resources.js on lines 406..419
    app/frontend/javascript/shared/resources.js on lines 848..861

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

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

      {
        "resource": "submission",
        "attributes": {
          "uuid": "",
          "name": "",
    Severity: Major
    Found in app/frontend/javascript/shared/resources.js and 2 other locations - About 55 mins to fix
    app/frontend/javascript/shared/resources.js on lines 392..405
    app/frontend/javascript/shared/resources.js on lines 406..419

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

    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

      {
        "resource": "tag_group",
        "attributes": {
          "uuid": "",
          "name": "",
    Severity: Minor
    Found in app/frontend/javascript/shared/resources.js and 1 other location - About 45 mins to fix
    app/frontend/javascript/shared/resources.js on lines 345..358

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

    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

      {
        "resource": "lot_type",
        "attributes": {
          "uuid": "",
          "name": "",
    Severity: Minor
    Found in app/frontend/javascript/shared/resources.js and 1 other location - About 45 mins to fix
    app/frontend/javascript/shared/resources.js on lines 874..887

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

    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_and_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 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": "between_tubes_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 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": "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

      {
        "resource": "study",
        "attributes": {
          "name": "",
          "uuid": "",
    Severity: Minor
    Found in app/frontend/javascript/shared/resources.js and 1 other location - About 30 mins to fix
    app/frontend/javascript/shared/resources.js on lines 907..919

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 45.

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

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

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

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

    Refactorings

    Further Reading

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

      {
        "resource": "tag",
        "attributes": {
          "oligo": "",
          "map_id": "",
    Severity: Minor
    Found in app/frontend/javascript/shared/resources.js and 1 other location - About 30 mins to fix
    app/frontend/javascript/shared/resources.js on lines 826..838

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 45.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status