fog/fog-openstack

View on GitHub

Showing 460 of 616 total issues

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

module Fog
  module OpenStack
    class Network
      class SubnetPools < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/subnet_pools.rb and 1 other location - About 1 hr to fix
lib/fog/openstack/network/models/ipsec_site_connections.rb on lines 4..28

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

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

module Fog
  module OpenStack
    class Network
      class IpsecSiteConnections < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/ipsec_site_connections.rb and 1 other location - About 1 hr to fix
lib/fog/openstack/network/models/subnet_pools.rb on lines 4..28

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

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

  module OpenStack
    class Network
      class Real
        def update_quota(tenant_id, options = {})
          request(
Severity: Major
Found in lib/fog/openstack/network/requests/update_quota.rb and 1 other location - About 1 hr to fix
lib/fog/openstack/compute/requests/update_quota.rb on lines 2..22

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

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

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

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

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

Refactorings

Further Reading

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

              {
                  "archive_policy" => {
                      "aggregation_methods" => [
                          "95pct",
                          "median",
Severity: Major
Found in lib/fog/openstack/metric/requests/list_metrics.rb and 2 other locations - About 1 hr to fix
lib/fog/openstack/metric/requests/get_metric.rb on lines 18..55
lib/fog/openstack/metric/requests/list_metrics.rb on lines 20..57

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

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

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

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

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

Refactorings

Further Reading

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

              {
                  "archive_policy" => {
                      "aggregation_methods" => [
                          "95pct",
                          "median",
Severity: Major
Found in lib/fog/openstack/metric/requests/list_metrics.rb and 2 other locations - About 1 hr to fix
lib/fog/openstack/metric/requests/get_metric.rb on lines 18..55
lib/fog/openstack/metric/requests/list_metrics.rb on lines 59..96

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

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

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

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

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

Refactorings

Further Reading

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

          response.body = {
              "archive_policy" => {
                  "aggregation_methods" => [
                      "95pct",
                      "median",
Severity: Major
Found in lib/fog/openstack/metric/requests/get_metric.rb and 2 other locations - About 1 hr to fix
lib/fog/openstack/metric/requests/list_metrics.rb on lines 20..57
lib/fog/openstack/metric/requests/list_metrics.rb on lines 59..96

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

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

  module OpenStack
    class Compute
      class Real
        def update_quota(tenant_id, options = {})
          request(
Severity: Major
Found in lib/fog/openstack/compute/requests/update_quota.rb and 1 other location - About 1 hr to fix
lib/fog/openstack/network/requests/update_quota.rb on lines 2..22

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

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 LbPools < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/lb_pools.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_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 VpnServices < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/vpn_services.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/subnets.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 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 Extensions < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/extensions.rb and 14 other locations - About 1 hr to fix
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/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 Networks < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/networks.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/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 LbVips < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/lb_vips.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/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 SecurityGroups < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/security_groups.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/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 15 locations. Consider refactoring.
Open

module Fog
  module OpenStack
    class Network
      class IpsecPolicies < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/ipsec_policies.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/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 Routers < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/routers.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/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 LbHealthMonitors < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/lb_health_monitors.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_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 Ports < Fog::OpenStack::Collection
        attribute :filters
Severity: Major
Found in lib/fog/openstack/network/models/ports.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/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

Severity
Category
Status
Source
Language