jkawamoto/roadie

View on GitHub

Showing 602 of 2,161 total issues

Similar blocks of code found in 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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

package virtual_machine_extension_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_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_power_off_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 21 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/availability_sets/availability_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/availability_sets/availability_sets_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/images/images_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_extension_images/virtual_machine_extension_images_list_types_parameters.go on lines 1..174
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_offers_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_instance_view_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_get_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_skus_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_all_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_reimage_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_convert_to_managed_disks_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_deallocate_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_delete_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_generalize_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_list_available_sizes_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_redeploy_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_restart_parameters.go on lines 1..180
cloud/azure/compute/client/virtual_machines/virtual_machines_start_parameters.go on lines 1..180

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

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 files

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

cloud/azure/batch/client/files/file_get_node_file_properties_from_compute_node_responses.go on lines 1..172

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

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 files

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

cloud/azure/batch/client/files/file_get_node_file_properties_from_task_responses.go on lines 1..172

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

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

package resources

// 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/resources/resources_check_existence_by_id_parameters.go on lines 1..160
cloud/azure/resource/client/resources/resources_delete_by_id_parameters.go on lines 1..160
cloud/azure/resource/client/tags/tags_list_parameters.go on lines 1..160

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

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