fog/fog-openstack

View on GitHub

Showing 460 of 616 total issues

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

  module OpenStack
    class Workflow
      class V2
        class Real
          def list_workflows(params = {})
Severity: Major
Found in lib/fog/openstack/workflow/v2/requests/list_workflows.rb and 1 other location - About 1 hr to fix
lib/fog/openstack/workflow/v2/requests/list_actions.rb on lines 2..24

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

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

module Fog
  module OpenStack
    class Network
      class Subnets < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/subnets.rb and 14 other locations - About 1 hr to fix
lib/fog/openstack/network/models/extensions.rb on lines 4..27
lib/fog/openstack/network/models/floating_ips.rb on lines 4..27
lib/fog/openstack/network/models/ike_policies.rb on lines 4..27
lib/fog/openstack/network/models/ipsec_policies.rb on lines 4..27
lib/fog/openstack/network/models/lb_health_monitors.rb on lines 4..27
lib/fog/openstack/network/models/lb_members.rb on lines 4..27
lib/fog/openstack/network/models/lb_pools.rb on lines 4..27
lib/fog/openstack/network/models/lb_vips.rb on lines 4..27
lib/fog/openstack/network/models/networks.rb on lines 4..27
lib/fog/openstack/network/models/ports.rb on lines 4..27
lib/fog/openstack/network/models/routers.rb on lines 4..27
lib/fog/openstack/network/models/security_group_rules.rb on lines 4..27
lib/fog/openstack/network/models/security_groups.rb on lines 4..27
lib/fog/openstack/network/models/vpn_services.rb on lines 4..27

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

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

module Fog
  module OpenStack
    class Network
      class SecurityGroupRules < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/security_group_rules.rb and 14 other locations - About 1 hr to fix
lib/fog/openstack/network/models/extensions.rb on lines 4..27
lib/fog/openstack/network/models/floating_ips.rb on lines 4..27
lib/fog/openstack/network/models/ike_policies.rb on lines 4..27
lib/fog/openstack/network/models/ipsec_policies.rb on lines 4..27
lib/fog/openstack/network/models/lb_health_monitors.rb on lines 4..27
lib/fog/openstack/network/models/lb_members.rb on lines 4..27
lib/fog/openstack/network/models/lb_pools.rb on lines 4..27
lib/fog/openstack/network/models/lb_vips.rb on lines 4..27
lib/fog/openstack/network/models/networks.rb on lines 4..27
lib/fog/openstack/network/models/ports.rb on lines 4..27
lib/fog/openstack/network/models/routers.rb on lines 4..27
lib/fog/openstack/network/models/security_groups.rb on lines 4..27
lib/fog/openstack/network/models/subnets.rb on lines 4..27
lib/fog/openstack/network/models/vpn_services.rb on lines 4..27

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

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

module Fog
  module OpenStack
    class Network
      class FloatingIps < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/floating_ips.rb and 14 other locations - About 1 hr to fix
lib/fog/openstack/network/models/extensions.rb on lines 4..27
lib/fog/openstack/network/models/ike_policies.rb on lines 4..27
lib/fog/openstack/network/models/ipsec_policies.rb on lines 4..27
lib/fog/openstack/network/models/lb_health_monitors.rb on lines 4..27
lib/fog/openstack/network/models/lb_members.rb on lines 4..27
lib/fog/openstack/network/models/lb_pools.rb on lines 4..27
lib/fog/openstack/network/models/lb_vips.rb on lines 4..27
lib/fog/openstack/network/models/networks.rb on lines 4..27
lib/fog/openstack/network/models/ports.rb on lines 4..27
lib/fog/openstack/network/models/routers.rb on lines 4..27
lib/fog/openstack/network/models/security_group_rules.rb on lines 4..27
lib/fog/openstack/network/models/security_groups.rb on lines 4..27
lib/fog/openstack/network/models/subnets.rb on lines 4..27
lib/fog/openstack/network/models/vpn_services.rb on lines 4..27

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

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

module Fog
  module OpenStack
    class Network
      class LbMembers < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/lb_members.rb and 14 other locations - About 1 hr to fix
lib/fog/openstack/network/models/extensions.rb on lines 4..27
lib/fog/openstack/network/models/floating_ips.rb on lines 4..27
lib/fog/openstack/network/models/ike_policies.rb on lines 4..27
lib/fog/openstack/network/models/ipsec_policies.rb on lines 4..27
lib/fog/openstack/network/models/lb_health_monitors.rb on lines 4..27
lib/fog/openstack/network/models/lb_pools.rb on lines 4..27
lib/fog/openstack/network/models/lb_vips.rb on lines 4..27
lib/fog/openstack/network/models/networks.rb on lines 4..27
lib/fog/openstack/network/models/ports.rb on lines 4..27
lib/fog/openstack/network/models/routers.rb on lines 4..27
lib/fog/openstack/network/models/security_group_rules.rb on lines 4..27
lib/fog/openstack/network/models/security_groups.rb on lines 4..27
lib/fog/openstack/network/models/subnets.rb on lines 4..27
lib/fog/openstack/network/models/vpn_services.rb on lines 4..27

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

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

      class Real
        def update_lb_health_monitor(health_monitor_id, options = {})
          data = {'health_monitor' => {}}

          vanilla_options = [:delay, :timeout, :max_retries, :http_method, :url_path, :expected_codes, :admin_state_up]
lib/fog/openstack/network/requests/update_subnet_pool.rb on lines 4..19

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

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

  module OpenStack
    class Network
      class Real
        def delete_lb_pool(pool_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_lb_pool.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_lb_vip(vip_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_lb_vip.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_port(port_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_port.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Compute
      class Real
        def delete_volume(volume_id)
          request(
Severity: Major
Found in lib/fog/openstack/compute/requests/delete_volume.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_lb_member(member_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_lb_member.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_ipsec_policy(ipsec_policy_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_ipsec_policy.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_subnet(subnet_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_subnet.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

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

            {
              "created_at"  => "2014-09-26T20:23:14.222815",
              "description" => "Development testing cloud",
              "name"        => "dev-cloud",
              "parameters"  =>
Severity: Major
Found in lib/fog/openstack/planning/requests/list_plans.rb and 1 other location - About 1 hr to fix
lib/fog/openstack/planning/requests/get_plan.rb on lines 18..51

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

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

  module OpenStack
    class Network
      class Real
        def delete_lbaas_l7policy(l7policy_id)
          request(
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_lbaas_listener(listener_id)
          request(
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_ike_policy(ike_policy_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_ike_policy.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_lbaas_loadbalancer(loadbalancer_id)
          request(
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_rbac_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

  module OpenStack
    class Network
      class Real
        def delete_rbac_policy(rbac_policy_id)
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/delete_rbac_policy.rb and 18 other locations - About 1 hr to fix
lib/fog/openstack/compute/requests/delete_volume.rb on lines 2..23
lib/fog/openstack/network/requests/delete_floating_ip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ike_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_ipsec_policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_health_monitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_member.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lb_vip.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_listener.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb on lines 2..23
lib/fog/openstack/network/requests/delete_lbaas_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_network.rb on lines 2..23
lib/fog/openstack/network/requests/delete_port.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet.rb on lines 2..23
lib/fog/openstack/network/requests/delete_subnet_pool.rb on lines 2..23
lib/fog/openstack/network/requests/delete_vpn_service.rb on lines 2..23

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

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

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

          response.body = {
            "created_at"  => "2014-09-26T20:23:14.222815",
            "description" => "Development testing cloud",
            "name"        => "dev-cloud",
            "parameters"  =>
Severity: Major
Found in lib/fog/openstack/planning/requests/get_plan.rb and 1 other location - About 1 hr to fix
lib/fog/openstack/planning/requests/list_plans.rb on lines 20..53

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

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