Showing 9 of 9 total issues

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

  class RDSConfig < APIConfig
    def self.info
      "Aliyu RDS Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/rds.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/sts.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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

  class ECSConfig < APIConfig
    def self.info
      "Aliyu ECS Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/ecs.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/sts.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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

  class STSConfig < APIConfig
    def self.info
      "Aliyu STS Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/sts.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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

  class VPCConfig < APIConfig
    def self.info
      "Aliyu VPC Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/vpc.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/sts.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 30.

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

  class CDNConfig < APIConfig
    def self.info
      "Aliyu CDN Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/cdn.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/sts.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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

  class DNSConfig < APIConfig
    def self.info
      "Aliyun DNS Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/dns.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/sts.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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

  class SLBConfig < APIConfig
    def self.info
      "Aliyu SLB Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/slb.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/sts.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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

  class RAMConfig < APIConfig
    def self.info
      "Aliyu RAM Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/ram.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/business.rb on lines 2..22
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/sts.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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

  class BusinessConfig < APIConfig
    def self.info
      "Aliyu Business Service"
    end
    def self.endpoint
Severity: Major
Found in lib/aliyun/services/business.rb and 8 other locations - About 25 mins to fix
lib/aliyun/services/cdn.rb on lines 2..22
lib/aliyun/services/dns.rb on lines 2..22
lib/aliyun/services/ecs.rb on lines 2..22
lib/aliyun/services/ram.rb on lines 2..22
lib/aliyun/services/rds.rb on lines 2..22
lib/aliyun/services/slb.rb on lines 2..22
lib/aliyun/services/sts.rb on lines 2..22
lib/aliyun/services/vpc.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 30.

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