ManageIQ/manageiq-ui-classic

View on GitHub

Showing 18,390 of 18,390 total issues

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

        {
            "href": "http://localhost:3001/api/configuration_script_sources/18/configuration_script_payloads/211",
            "id": "211",
            "manager_id": "2",
            "manager_ref": "widgets/26_Right_Sizing.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 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/188",
            "id": "188",
            "manager_id": "2",
            "manager_ref": "reports/154_Openstack_-_Number_of_VMs_by_Flavor.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 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/226",
            "id": "226",
            "manager_id": "2",
            "manager_ref": "widgets/41_Datastores_with_Low_Freespace.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 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/197",
            "id": "197",
            "manager_id": "2",
            "manager_ref": "reports/163_Infrastructure_-_Hosts_with_the_most_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 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/232",
            "id": "232",
            "manager_id": "2",
            "manager_ref": "widgets/47_Chargeback_-_QA_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 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 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/205",
            "id": "205",
            "manager_id": "2",
            "manager_ref": "reports/9157_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 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/213",
            "id": "213",
            "manager_id": "2",
            "manager_ref": "widgets/28_Top_CPU_Consumers_(last_7_days).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 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/218",
            "id": "218",
            "manager_id": "2",
            "manager_ref": "widgets/33_Openstack_-_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 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/228",
            "id": "228",
            "manager_id": "2",
            "manager_ref": "widgets/43_Right_Sizing_Recommendations_(CPU).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 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/236",
            "id": "236",
            "manager_id": "2",
            "manager_ref": "widgets/938_Azure_-_Number_of_VMs_by_Flavor.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 6081..6096

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/169",
            "id": "169",
            "manager_id": "2",
            "manager_ref": "ansible/amazon/lambda_basic_create.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 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 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/174",
            "id": "174",
            "manager_id": "2",
            "manager_ref": "ansible/windows/windows_update.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 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/178",
            "id": "178",
            "manager_id": "2",
            "manager_ref": "reports/144_Right-Sizing_Recommendations.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 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/198",
            "id": "198",
            "manager_id": "2",
            "manager_ref": "reports/164_Datastores_with_most_VMDKs.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 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/208",
            "id": "208",
            "manager_id": "2",
            "manager_ref": "widgets/23_Right_Sizing_Recommendations_(Memory).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 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/216",
            "id": "216",
            "manager_id": "2",
            "manager_ref": "widgets/31_Openstack_-_Tenant_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 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/185",
            "id": "185",
            "manager_id": "2",
            "manager_ref": "reports/151_Openstack_-_Tenants.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 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/195",
            "id": "195",
            "manager_id": "2",
            "manager_ref": "reports/161_Datastores_with_low_freespace.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 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 5 locations. Consider refactoring.
Open

      var allFirstHalfAMHoursUnchecked = function(i) {
        var hourFirstHalfAMValues = _.times(6, _.constant(false));
        hourFirstHalfAMValues[i] = true;
        return angular.equals(scope.vm.timeProfileModel.hourValuesAMFirstHalf, hourFirstHalfAMValues);
      };
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 33..37
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 52..56
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 58..62
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 64..68

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

      var allSecondHalfAMHoursUnchecked = function(i) {
        var hourSecondHalfAMValues = _.times(6, _.constant(false));
        hourSecondHalfAMValues[i] = true;
        return angular.equals(scope.vm.timeProfileModel.hourValuesAMSecondHalf, hourSecondHalfAMValues);
      };
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 33..37
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 46..50
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 58..62
app/javascript/oldjs/directives/configuration/min_time_check.js on lines 64..68

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