Showing 588 of 1,218 total issues

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/put_records.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/get_records.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/merge_shards.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/split_shard.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/add_tags_to_stream.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/describe_stream.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/get_shard_iterator.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/delete_stream.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          unless stream = data[:kinesis_streams].detect{ |s| s["StreamName"] == stream_name }
            raise Fog::AWS::Kinesis::ResourceNotFound.new("Stream #{stream_name} under account #{@account_id} not found.")
Severity: Major
Found in lib/fog/aws/requests/kinesis/remove_tags_from_stream.rb and 10 other locations - About 15 mins to fix
lib/fog/aws/requests/kinesis/add_tags_to_stream.rb on lines 34..35
lib/fog/aws/requests/kinesis/delete_stream.rb on lines 31..32
lib/fog/aws/requests/kinesis/describe_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_records.rb on lines 39..40
lib/fog/aws/requests/kinesis/get_shard_iterator.rb on lines 39..40
lib/fog/aws/requests/kinesis/list_tags_for_stream.rb on lines 39..40
lib/fog/aws/requests/kinesis/merge_shards.rb on lines 37..38
lib/fog/aws/requests/kinesis/put_record.rb on lines 41..42
lib/fog/aws/requests/kinesis/put_records.rb on lines 38..39
lib/fog/aws/requests/kinesis/split_shard.rb on lines 37..38

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

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

          elsif !instance
            raise Fog::AWS::Compute::NotFound.new("The instance ID '#{instance_id}' does not exist.")
          elsif !vpc
            raise Fog::AWS::Compute::NotFound.new("The VPC '#{vpc_id}' does not exist.")
          end
Severity: Minor
Found in lib/fog/aws/requests/compute/attach_classic_link_vpc.rb and 2 other locations - About 15 mins to fix
lib/fog/aws/requests/compute/attach_volume.rb on lines 63..67
lib/fog/aws/requests/compute/detach_classic_link_vpc.rb on lines 49..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 26.

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 AWS
    class ElasticBeanstalk
      class Real
        require 'fog/aws/parsers/beanstalk/empty'

Severity: Minor
Found in lib/fog/aws/requests/beanstalk/delete_configuration_template.rb and 1 other location - About 15 mins to fix
lib/fog/aws/requests/beanstalk/delete_environment_configuration.rb on lines 2..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 26.

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 AWS
    class ElasticBeanstalk
      class Real
        require 'fog/aws/parsers/beanstalk/empty'

lib/fog/aws/requests/beanstalk/delete_configuration_template.rb on lines 2..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 26.

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

  module AWS
    class CloudFormation
      class Real
        require 'fog/aws/parsers/cloud_formation/basic'

Severity: Minor
Found in lib/fog/aws/requests/cloud_formation/execute_change_set.rb and 2 other locations - About 15 mins to fix
lib/fog/aws/requests/cloud_formation/delete_change_set.rb on lines 2..21
lib/fog/aws/requests/cloud_formation/describe_change_set.rb on lines 2..38

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

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

            if sec_group['EC2SecurityGroups'].find{|h| h['EC2SecurityGroupName'] == opts['EC2SecurityGroupName']}
              raise Fog::AWS::Elasticache::AuthorizationAlreadyExists.new("AuthorizationAlreadyExists => #{opts['EC2SecurityGroupName']} is already defined")
lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb on lines 45..46

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

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

  module Parsers
    module AWS
      module SES
        class DeleteVerifiedEmailAddress < Fog::Parsers::Base
          def reset
Severity: Minor
Found in lib/fog/aws/parsers/ses/delete_verified_email_address.rb and 2 other locations - About 15 mins to fix
lib/fog/aws/parsers/beanstalk/empty.rb on lines 2..13
lib/fog/aws/parsers/ses/verify_email_address.rb on lines 2..13

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

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 AWS
    class ElasticBeanstalk
      class Events < Fog::Collection
        model Fog::AWS::ElasticBeanstalk::Event
Severity: Minor
Found in lib/fog/aws/models/beanstalk/events.rb and 1 other location - About 15 mins to fix
lib/fog/aws/models/cloud_watch/alarm_histories.rb on lines 3..11

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

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 AWS
    class CloudWatch
      class AlarmHistories < Fog::Collection
        model Fog::AWS::CloudWatch::AlarmHistory
Severity: Minor
Found in lib/fog/aws/models/cloud_watch/alarm_histories.rb and 1 other location - About 15 mins to fix
lib/fog/aws/models/beanstalk/events.rb on lines 3..11

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

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

          if self.data[:distributions].values.any? { |d| (d['CNAME'] & (options['CNAME']||[])).empty? }
            Fog::AWS::CDN::Mock.error(:invalid_argument, 'CNAME is already in use')
Severity: Minor
Found in lib/fog/aws/requests/cdn/post_distribution.rb and 1 other location - About 15 mins to fix
lib/fog/aws/requests/cdn/post_streaming_distribution.rb on lines 77..78

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

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

  module Parsers
    module AWS
      module ElasticBeanstalk
        class Empty < Fog::Parsers::Base
          def reset
Severity: Minor
Found in lib/fog/aws/parsers/beanstalk/empty.rb and 2 other locations - About 15 mins to fix
lib/fog/aws/parsers/ses/delete_verified_email_address.rb on lines 2..13
lib/fog/aws/parsers/ses/verify_email_address.rb on lines 2..13

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

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

  module AWS
    class CloudFormation
      class Real
        require 'fog/aws/parsers/cloud_formation/basic'

Severity: Minor
Found in lib/fog/aws/requests/cloud_formation/delete_change_set.rb and 2 other locations - About 15 mins to fix
lib/fog/aws/requests/cloud_formation/describe_change_set.rb on lines 2..38
lib/fog/aws/requests/cloud_formation/execute_change_set.rb on lines 2..21

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

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