jkawamoto/roadie

View on GitHub

Showing 602 of 2,161 total issues

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

package virtual_machine_scale_sets

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_deallocate_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_instances_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_power_off_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_restart_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_start_parameters.go on lines 1..206

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

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

package virtual_machine_scale_sets

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_deallocate_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_instances_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_power_off_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_restart_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_update_instances_parameters.go on lines 1..206

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

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

package virtual_machine_scale_sets

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_deallocate_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_instances_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_restart_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_start_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_update_instances_parameters.go on lines 1..206

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

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

package virtual_machine_scale_sets

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_deallocate_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_instances_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_power_off_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_start_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_update_instances_parameters.go on lines 1..206

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

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

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

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

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

Refactorings

Further Reading

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

package virtual_machines

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machines/virtual_machines_capture_parameters.go on lines 1..206

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

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

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

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

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

Refactorings

Further Reading

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

package availability_sets

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/images/images_create_or_update_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_create_or_update_parameters.go on lines 1..206

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

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

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

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

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

Refactorings

Further Reading

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

package virtual_machines

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machines/virtual_machines_create_or_update_parameters.go on lines 1..206

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

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

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

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

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

Refactorings

Further Reading

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

package images

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/availability_sets/availability_sets_create_or_update_parameters.go on lines 1..206
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_create_or_update_parameters.go on lines 1..206

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

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

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

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

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

Refactorings

Further Reading

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

package virtual_machine_scale_sets

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/availability_sets/availability_sets_create_or_update_parameters.go on lines 1..206
cloud/azure/compute/client/images/images_create_or_update_parameters.go on lines 1..206

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

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

package deployments

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/resource/client/deployments/deployments_cancel_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_check_existence_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_delete_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_get_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_create_or_update_value_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_delete_value_parameters.go on lines 1..202

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

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

package deployments

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/resource/client/deployments/deployments_cancel_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_delete_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_export_template_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_get_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_create_or_update_value_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_delete_value_parameters.go on lines 1..202

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

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

package tags

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/resource/client/deployments/deployments_cancel_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_check_existence_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_delete_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_export_template_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_get_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_delete_value_parameters.go on lines 1..202

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

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

package deployments

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/resource/client/deployments/deployments_cancel_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_check_existence_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_delete_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_export_template_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_create_or_update_value_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_delete_value_parameters.go on lines 1..202

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

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

package deployments

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/resource/client/deployments/deployments_cancel_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_check_existence_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_export_template_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_get_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_create_or_update_value_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_delete_value_parameters.go on lines 1..202

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

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

package deployments

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/resource/client/deployments/deployments_check_existence_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_delete_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_export_template_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_get_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_create_or_update_value_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_delete_value_parameters.go on lines 1..202

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

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

package tags

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/resource/client/deployments/deployments_cancel_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_check_existence_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_delete_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_export_template_parameters.go on lines 1..202
cloud/azure/resource/client/deployments/deployments_get_parameters.go on lines 1..202
cloud/azure/resource/client/tags/tags_create_or_update_value_parameters.go on lines 1..202

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

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

package virtual_machine_scale_set_vms

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_extensions/virtual_machine_extensions_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_skus_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_deallocate_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_instance_view_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_power_off_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_all_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_start_parameters.go on lines 1..201

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

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

package virtual_machine_scale_set_vms

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_extensions/virtual_machine_extensions_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_skus_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_deallocate_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_instance_view_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_all_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_restart_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_start_parameters.go on lines 1..201

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

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

package virtual_machine_images

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_extensions/virtual_machine_extensions_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_deallocate_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_instance_view_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_power_off_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_all_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_restart_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_start_parameters.go on lines 1..201

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

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

package virtual_machine_scale_set_vms

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

cloud/azure/compute/client/virtual_machine_extensions/virtual_machine_extensions_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_skus_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_delete_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_instance_view_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_get_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_power_off_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_all_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_reimage_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_restart_parameters.go on lines 1..201
cloud/azure/compute/client/virtual_machine_scale_set_vms/virtual_machine_scale_set_vms_start_parameters.go on lines 1..201

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

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