jkawamoto/roadie

View on GitHub

Showing 2,161 of 2,161 total issues

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

package jobs

// 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/jobs/job_list_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/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 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/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/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_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 compute_nodes

// 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_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_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 tasks

// 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_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

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_list_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_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/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 jobs

// 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_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 certificates

// 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/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_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 jobs

// 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_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 jobs

// 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_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 certificates

// 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_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_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 applications

// 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/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_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 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_list_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_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_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 applications

// 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_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_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 jobs

// 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/jobs/job_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_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 compute_nodes

// 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_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_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 compute_nodes

// 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/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_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 accounts

// 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/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_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_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 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/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_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_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 5 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/images/images_list_parameters.go on lines 1..138
cloud/azure/compute/client/virtual_machines/virtual_machines_list_all_parameters.go on lines 1..138
cloud/azure/subscriptions/client/subscriptions/subscriptions_get_parameters.go on lines 1..138
cloud/azure/subscriptions/client/subscriptions/subscriptions_list_locations_parameters.go on lines 1..138

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

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