fog/fog-ecloud

View on GitHub

Showing 73 of 165 total issues

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

module Fog
  module Compute
    class Ecloud
      class TrustedNetworkGroups < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/trusted_network_groups.rb and 1 other location - About 1 hr to fix
lib/fog/compute/ecloud/models/firewall_acls.rb on lines 3..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 56.

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 Compute
    class Ecloud
      class FirewallAcls < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/firewall_acls.rb and 1 other location - About 1 hr to fix
lib/fog/compute/ecloud/models/trusted_network_groups.rb on lines 3..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 56.

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

            :HardwareConfiguration => {
              :href => "/cloudapi/ecloud/virtualmachines/#{server_id}/hardwareconfiguration",
              :type => "application/vnd.tmrk.cloud.virtualMachineHardware",
              :Links => {
                :Link => {
lib/fog/compute/ecloud/requests/virtual_machine_import.rb on lines 92..119

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

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

            :HardwareConfiguration => {
              :href => "/cloudapi/ecloud/virtualmachines/#{server_id}/hardwareconfiguration",
              :type => "application/vnd.tmrk.cloud.virtualMachineHardware",
              :Links => {
                :Link => {
Severity: Major
Found in lib/fog/compute/ecloud/requests/virtual_machine_import.rb and 1 other location - About 1 hr to fix
lib/fog/compute/ecloud/requests/virtual_machine_create_from_template.rb on lines 150..177

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

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

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

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

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

Refactorings

Further Reading

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

module Fog
  module Compute
    class Ecloud
      class Rnats < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/rnats.rb and 3 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb on lines 3..23
lib/fog/compute/ecloud/models/memory_usage_detail_summary.rb on lines 3..23
lib/fog/compute/ecloud/models/storage_usage_detail_summary.rb on lines 3..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 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 4 locations. Consider refactoring.
Open

module Fog
  module Compute
    class Ecloud
      class MemoryUsageDetailSummary < Fog::Ecloud::Collection
        identity :href
lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb on lines 3..23
lib/fog/compute/ecloud/models/rnats.rb on lines 3..23
lib/fog/compute/ecloud/models/storage_usage_detail_summary.rb on lines 3..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 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 4 locations. Consider refactoring.
Open

module Fog
  module Compute
    class Ecloud
      class StorageUsageDetailSummary < Fog::Ecloud::Collection
        identity :href
lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb on lines 3..23
lib/fog/compute/ecloud/models/memory_usage_detail_summary.rb on lines 3..23
lib/fog/compute/ecloud/models/rnats.rb on lines 3..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 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 4 locations. Consider refactoring.
Open

module Fog
  module Compute
    class Ecloud
      class CpuUsageDetailSummary < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/cpu_usage_detail_summary.rb and 3 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/memory_usage_detail_summary.rb on lines 3..23
lib/fog/compute/ecloud/models/rnats.rb on lines 3..23
lib/fog/compute/ecloud/models/storage_usage_detail_summary.rb on lines 3..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 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 5 locations. Consider refactoring.
Open

module Fog
  module Compute
    class Ecloud
      class GuestProcesses < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/guest_processes.rb and 4 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/operating_system_families.rb on lines 3..23
lib/fog/compute/ecloud/models/support_tickets.rb on lines 3..23
lib/fog/compute/ecloud/models/tags.rb on lines 3..23
lib/fog/compute/ecloud/models/users.rb on lines 3..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 49.

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

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

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

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

Refactorings

Further Reading

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

module Fog
  module Compute
    class Ecloud
      class SupportTickets < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/support_tickets.rb and 4 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/guest_processes.rb on lines 3..23
lib/fog/compute/ecloud/models/operating_system_families.rb on lines 3..23
lib/fog/compute/ecloud/models/tags.rb on lines 3..23
lib/fog/compute/ecloud/models/users.rb on lines 3..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 49.

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

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

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

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

Refactorings

Further Reading

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

module Fog
  module Compute
    class Ecloud
      class OperatingSystemFamilies < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/operating_system_families.rb and 4 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/guest_processes.rb on lines 3..23
lib/fog/compute/ecloud/models/support_tickets.rb on lines 3..23
lib/fog/compute/ecloud/models/tags.rb on lines 3..23
lib/fog/compute/ecloud/models/users.rb on lines 3..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 49.

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

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

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

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

Refactorings

Further Reading

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

module Fog
  module Compute
    class Ecloud
      class Users < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/users.rb and 4 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/guest_processes.rb on lines 3..23
lib/fog/compute/ecloud/models/operating_system_families.rb on lines 3..23
lib/fog/compute/ecloud/models/support_tickets.rb on lines 3..23
lib/fog/compute/ecloud/models/tags.rb on lines 3..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 49.

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

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

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

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

Refactorings

Further Reading

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

module Fog
  module Compute
    class Ecloud
      class Tags < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/tags.rb and 4 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/guest_processes.rb on lines 3..23
lib/fog/compute/ecloud/models/operating_system_families.rb on lines 3..23
lib/fog/compute/ecloud/models/support_tickets.rb on lines 3..23
lib/fog/compute/ecloud/models/users.rb on lines 3..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 49.

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

module Fog
  module Compute
    class Ecloud
      class HardwareConfigurations < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/hardware_configurations.rb and 7 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/api_keys.rb on lines 3..23
lib/fog/compute/ecloud/models/authentication_levels.rb on lines 3..23
lib/fog/compute/ecloud/models/catalog_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/layouts.rb on lines 3..23
lib/fog/compute/ecloud/models/login_banners.rb on lines 3..23
lib/fog/compute/ecloud/models/password_complexity_rules.rb on lines 3..23
lib/fog/compute/ecloud/models/server_configuration_options.rb on lines 3..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 47.

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

module Fog
  module Compute
    class Ecloud
      class ApiKeys < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/api_keys.rb and 7 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/authentication_levels.rb on lines 3..23
lib/fog/compute/ecloud/models/catalog_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/hardware_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/layouts.rb on lines 3..23
lib/fog/compute/ecloud/models/login_banners.rb on lines 3..23
lib/fog/compute/ecloud/models/password_complexity_rules.rb on lines 3..23
lib/fog/compute/ecloud/models/server_configuration_options.rb on lines 3..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 47.

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

module Fog
  module Compute
    class Ecloud
      class ServerConfigurationOptions < Fog::Ecloud::Collection
        identity :href
lib/fog/compute/ecloud/models/api_keys.rb on lines 3..23
lib/fog/compute/ecloud/models/authentication_levels.rb on lines 3..23
lib/fog/compute/ecloud/models/catalog_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/hardware_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/layouts.rb on lines 3..23
lib/fog/compute/ecloud/models/login_banners.rb on lines 3..23
lib/fog/compute/ecloud/models/password_complexity_rules.rb on lines 3..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 47.

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

module Fog
  module Compute
    class Ecloud
      class CatalogConfigurations < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/catalog_configurations.rb and 7 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/api_keys.rb on lines 3..23
lib/fog/compute/ecloud/models/authentication_levels.rb on lines 3..23
lib/fog/compute/ecloud/models/hardware_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/layouts.rb on lines 3..23
lib/fog/compute/ecloud/models/login_banners.rb on lines 3..23
lib/fog/compute/ecloud/models/password_complexity_rules.rb on lines 3..23
lib/fog/compute/ecloud/models/server_configuration_options.rb on lines 3..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 47.

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

module Fog
  module Compute
    class Ecloud
      class PasswordComplexityRules < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/password_complexity_rules.rb and 7 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/api_keys.rb on lines 3..23
lib/fog/compute/ecloud/models/authentication_levels.rb on lines 3..23
lib/fog/compute/ecloud/models/catalog_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/hardware_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/layouts.rb on lines 3..23
lib/fog/compute/ecloud/models/login_banners.rb on lines 3..23
lib/fog/compute/ecloud/models/server_configuration_options.rb on lines 3..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 47.

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

module Fog
  module Compute
    class Ecloud
      class Layouts < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/layouts.rb and 7 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/api_keys.rb on lines 3..23
lib/fog/compute/ecloud/models/authentication_levels.rb on lines 3..23
lib/fog/compute/ecloud/models/catalog_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/hardware_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/login_banners.rb on lines 3..23
lib/fog/compute/ecloud/models/password_complexity_rules.rb on lines 3..23
lib/fog/compute/ecloud/models/server_configuration_options.rb on lines 3..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 47.

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

module Fog
  module Compute
    class Ecloud
      class LoginBanners < Fog::Ecloud::Collection
        identity :href
Severity: Major
Found in lib/fog/compute/ecloud/models/login_banners.rb and 7 other locations - About 1 hr to fix
lib/fog/compute/ecloud/models/api_keys.rb on lines 3..23
lib/fog/compute/ecloud/models/authentication_levels.rb on lines 3..23
lib/fog/compute/ecloud/models/catalog_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/hardware_configurations.rb on lines 3..23
lib/fog/compute/ecloud/models/layouts.rb on lines 3..23
lib/fog/compute/ecloud/models/password_complexity_rules.rb on lines 3..23
lib/fog/compute/ecloud/models/server_configuration_options.rb on lines 3..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 47.

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