jkawamoto/roadie

View on GitHub

Showing 2,161 of 2,161 total issues

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_get_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

Similar blocks of code found in 4 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

Severity: Major
Found in cloud/azure/resource/client/tags/tags_list_parameters.go and 3 other locations - About 1 day to fix
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/resources/resources_get_by_id_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

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_delete_by_id_parameters.go on lines 1..160
cloud/azure/resource/client/resources/resources_get_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

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

package job_schedules

// 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/pools/pool_exists_responses.go on lines 1..154

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

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 pools

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

Severity: Major
Found in cloud/azure/batch/client/pools/pool_exists_responses.go and 1 other location - About 1 day to fix
cloud/azure/batch/client/job_schedules/job_schedule_exists_responses.go on lines 1..154

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

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 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_list_parameters.go on lines 1..159
cloud/azure/compute/client/images/images_list_by_resource_group_parameters.go on lines 1..159
cloud/azure/compute/client/usage/usage_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_publishers_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_sizes/virtual_machine_sizes_list_parameters.go on lines 1..159

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

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 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_list_parameters.go on lines 1..159
cloud/azure/compute/client/images/images_list_by_resource_group_parameters.go on lines 1..159
cloud/azure/compute/client/usage/usage_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_sizes/virtual_machine_sizes_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machines/virtual_machines_list_parameters.go on lines 1..159

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

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 usage

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

Severity: Major
Found in cloud/azure/compute/client/usage/usage_list_parameters.go and 6 other locations - About 1 day to fix
cloud/azure/compute/client/availability_sets/availability_sets_list_parameters.go on lines 1..159
cloud/azure/compute/client/images/images_list_by_resource_group_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_publishers_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_sizes/virtual_machine_sizes_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machines/virtual_machines_list_parameters.go on lines 1..159

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

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 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_list_parameters.go on lines 1..159
cloud/azure/compute/client/images/images_list_by_resource_group_parameters.go on lines 1..159
cloud/azure/compute/client/usage/usage_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_publishers_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_sizes/virtual_machine_sizes_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machines/virtual_machines_list_parameters.go on lines 1..159

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

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 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_list_by_resource_group_parameters.go on lines 1..159
cloud/azure/compute/client/usage/usage_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_publishers_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_sizes/virtual_machine_sizes_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machines/virtual_machines_list_parameters.go on lines 1..159

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

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 virtual_machine_sizes

// 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_list_parameters.go on lines 1..159
cloud/azure/compute/client/images/images_list_by_resource_group_parameters.go on lines 1..159
cloud/azure/compute/client/usage/usage_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_publishers_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machines/virtual_machines_list_parameters.go on lines 1..159

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

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 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_list_parameters.go on lines 1..159
cloud/azure/compute/client/usage/usage_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_images/virtual_machine_images_list_publishers_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_scale_sets/virtual_machine_scale_sets_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machine_sizes/virtual_machine_sizes_list_parameters.go on lines 1..159
cloud/azure/compute/client/virtual_machines/virtual_machines_list_parameters.go on lines 1..159

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

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 pools

// 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/tasks/task_get_responses.go on lines 1..141

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

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 tasks

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

Severity: Major
Found in cloud/azure/batch/client/tasks/task_get_responses.go and 1 other location - About 1 day to fix
cloud/azure/batch/client/pools/pool_evaluate_auto_scale_responses.go on lines 1..141

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

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 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_create_or_update_responses.go on lines 1..129

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

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 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_create_or_update_by_id_responses.go on lines 1..129

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

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

package job_schedules

// 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/accounts/account_list_node_agent_skus_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_get_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_list_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_get_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_list_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_remote_login_settings_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_list_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_compute_node_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_task_responses.go on lines 1..135
cloud/azure/batch/client/job_schedules/job_schedule_get_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_all_jobs_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_from_job_schedule_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_preparation_and_release_task_status_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_get_all_pools_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_get_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_list_pool_usage_metrics_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_subtasks_responses.go on lines 1..135

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

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

package job_schedules

// 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/accounts/account_list_node_agent_skus_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_get_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_list_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_get_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_list_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_remote_login_settings_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_list_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_compute_node_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_task_responses.go on lines 1..135
cloud/azure/batch/client/job_schedules/job_schedule_list_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_all_jobs_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_from_job_schedule_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_preparation_and_release_task_status_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_get_all_pools_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_get_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_list_pool_usage_metrics_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_subtasks_responses.go on lines 1..135

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

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

package pools

// 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/accounts/account_list_node_agent_skus_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_get_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_list_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_get_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_list_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_remote_login_settings_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_list_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_compute_node_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_task_responses.go on lines 1..135
cloud/azure/batch/client/job_schedules/job_schedule_get_responses.go on lines 1..135
cloud/azure/batch/client/job_schedules/job_schedule_list_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_all_jobs_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_from_job_schedule_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_preparation_and_release_task_status_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_get_all_pools_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_get_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_subtasks_responses.go on lines 1..135

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

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

package pools

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

Severity: Major
Found in cloud/azure/batch/client/pools/pool_get_responses.go and 22 other locations - About 1 day to fix
cloud/azure/batch/client/accounts/account_list_node_agent_skus_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_get_responses.go on lines 1..135
cloud/azure/batch/client/applications/application_list_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_get_responses.go on lines 1..135
cloud/azure/batch/client/certificates/certificate_list_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_remote_login_settings_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_get_responses.go on lines 1..135
cloud/azure/batch/client/compute_nodes/compute_node_list_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_compute_node_responses.go on lines 1..135
cloud/azure/batch/client/files/file_list_from_task_responses.go on lines 1..135
cloud/azure/batch/client/job_schedules/job_schedule_get_responses.go on lines 1..135
cloud/azure/batch/client/job_schedules/job_schedule_list_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_all_jobs_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_get_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_from_job_schedule_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_preparation_and_release_task_status_responses.go on lines 1..135
cloud/azure/batch/client/jobs/job_list_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_get_all_pools_lifetime_statistics_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_list_pool_usage_metrics_responses.go on lines 1..135
cloud/azure/batch/client/pools/pool_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_responses.go on lines 1..135
cloud/azure/batch/client/tasks/task_list_subtasks_responses.go on lines 1..135

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

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