ManageIQ/manageiq-ui-classic

View on GitHub

Showing 18,390 of 18,390 total issues

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

  button_group('miq_action_vmdb', [
    select(
      :miq_action_vmdb_choice,
      nil,
      t = N_('Configuration'),
app/helpers/application_helper/toolbar/conditions_center.rb on lines 2..43

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

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

  button_group('condition_vmdb', [
    select(
      :condition_vmdb_choice,
      nil,
      t = N_('Configuration'),
Severity: Major
Found in app/helpers/application_helper/toolbar/conditions_center.rb and 1 other location - About 1 hr to fix
app/helpers/application_helper/toolbar/miq_actions_center.rb on lines 2..45

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

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

        select(
          :physical_server_identify_choice,
          nil,
          N_('Identify LED Operations'),
          N_('Identify'),
app/helpers/application_helper/toolbar/physical_chassis_summary_center.rb on lines 5..51

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

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 prepareSubmitData has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const prepareSubmitData = (values, recId, appliesToClass, appliesToId, initialValues, buttonIcon) => {
  const submitValues = values;
  submitValues.applies_to_class = appliesToClass;
  if (recId) {
    submitValues.applies_to_id = initialValues.applies_to_id;

Function init has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var init = function() {
    vm.aeMethodModel = {
      name: '',
      display_name: '',
      location: '',
Severity: Minor
Found in app/javascript/angular/miq_ae_class/ae_method_form_controller.js - About 1 hr to fix

Method update_method has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def update_method
    assert_privileges("miq_ae_method_edit")
    return unless load_edit("aemethod_edit__#{params[:id]}", "replace_cell__explorer")

    get_method_form_vars
Severity: Minor
Found in app/controllers/miq_ae_class_controller.rb - About 1 hr to fix

Method atomic_st_edit has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def atomic_st_edit
    assert_privileges(params[:id] ? 'atomic_catalogitem_edit' : 'atomic_catalogitem_new')

    # reset the active tree back to :sandt_tree, it was changed temporairly to display automate entry point tree in a popup div
    self.x_active_tree = 'sandt_tree'
Severity: Minor
Found in app/controllers/catalog_controller.rb - About 1 hr to fix

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

  button_group('ems_physical_infra_vmdb', [
    select(
      :ems_physical_infra_vmdb_choice,
      nil,
      t = N_('Configuration'),
app/helpers/application_helper/toolbar/ems_storages_center.rb on lines 2..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 78.

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

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

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

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

Refactorings

Further Reading

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

  button_group('ems_storage_vmdb', [
                 select(
                   :ems_storage_vmdb_choice,
                   nil,
                   t = N_('Configuration'),
app/helpers/application_helper/toolbar/ems_physical_infras_center.rb on lines 2..47

Duplicated Code

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

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

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

Tuning

This issue has a mass of 78.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/186",
            "id": "186",
            "manager_id": "2",
            "manager_ref": "reports/152_Openstack_-_Top_Security_Groups_Used.yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/209",
            "id": "209",
            "manager_id": "2",
            "manager_ref": "widgets/24_VMs_Pending_Retirement.yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/224",
            "id": "224",
            "manager_id": "2",
            "manager_ref": "widgets/39_Chargeback_-_Test_VMs_(last_month).yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/172",
            "id": "172",
            "manager_id": "2",
            "manager_ref": "ansible/test/TEST-backup.yml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/176",
            "id": "176",
            "manager_id": "2",
            "manager_ref": "test_essentials_install.yml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/177",
            "id": "177",
            "manager_id": "2",
            "manager_ref": "reports/143_Top_Memory_Consumers_(last_hour).yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/190",
            "id": "190",
            "manager_id": "2",
            "manager_ref": "reports/156_Amazon_-_Active_VMs.yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/220",
            "id": "220",
            "manager_id": "2",
            "manager_ref": "widgets/35_Amazon_-_Top_CPU_Consumers_(last_hour).yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/221",
            "id": "221",
            "manager_id": "2",
            "manager_ref": "widgets/36_Amazon_-_Active_VMs.yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/235",
            "id": "235",
            "manager_id": "2",
            "manager_ref": "widgets/937_Azure_-_Top_Security_Groups_Used.yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5425..5440
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/194",
            "id": "194",
            "manager_id": "2",
            "manager_ref": "reports/160_Chargeback_-_Dev_VMs_(last_mont).yaml",
Severity: Major
Found in app/javascript/spec/ansible-edit-catalog-form/mockdata.js and 68 other locations - About 1 hr to fix
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5009..5024
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5025..5040
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5041..5056
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5057..5072
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5073..5088
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5089..5104
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5105..5120
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5121..5136
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5137..5152
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5153..5168
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5169..5184
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5185..5200
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5201..5216
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5217..5232
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5233..5248
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5249..5264
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5265..5280
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5281..5296
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5297..5312
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5313..5328
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5329..5344
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5345..5360
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5361..5376
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5377..5392
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5393..5408
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5409..5424
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5441..5456
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5457..5472
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5473..5488
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5489..5504
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5505..5520
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5521..5536
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5537..5552
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5553..5568
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5569..5584
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5585..5600
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5601..5616
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5617..5632
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5633..5648
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5649..5664
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5665..5680
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5681..5696
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5697..5712
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5713..5728
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5729..5744
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5745..5760
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5761..5776
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5777..5792
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5793..5808
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5809..5824
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5825..5840
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5841..5856
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5857..5872
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5873..5888
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5889..5904
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5905..5920
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5921..5936
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5937..5952
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5953..5968
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5969..5984
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 5985..6000
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6001..6016
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6017..6032
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6033..6048
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6049..6064
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6065..6080
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6081..6096
app/javascript/spec/ansible-edit-catalog-form/mockdata.js on lines 6097..6112

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language