YorickPeterse/ruby-lint

View on GitHub
lib/ruby-lint/definitions/gems/celluloid.rb

Summary

Maintainability
F
1 mo
Test Coverage

File celluloid.rb has 3415 lines of code (exceeds 250 allowed). Consider refactoring.
Open

RubyLint.registry.register('Celluloid') do |defs|
  defs.define_constant('Celluloid') do |klass|
    klass.inherits(defs.constant_proxy('Object', RubyLint.registry))

    klass.define_method('actor?')
Severity: Major
Found in lib/ruby-lint/definitions/gems/celluloid.rb - About 1 wk to fix

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

      defs.define_constant('Celluloid::PoolManager::TaskSet') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
    
        klass.define_method('[]') do |method|
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 day to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4487..4688

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

    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

      defs.define_constant('Celluloid::TaskSet') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
    
        klass.define_method('[]') do |method|
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 day to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3313..3514

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

    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

      defs.define_constant('Celluloid::Actor') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('args')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 day to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1701..1872

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

    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

      defs.define_constant('Celluloid::PoolManager::Actor') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('args')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 day to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 231..402

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

    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

      defs.define_constant('Celluloid::SupervisionGroup') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::InstanceMethods', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid', RubyLint.registry))
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 7 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3042..3141

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

    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

      defs.define_constant('Celluloid::PoolManager::SupervisionGroup') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::InstanceMethods', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid', RubyLint.registry))
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 7 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4159..4258

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

    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

      defs.define_constant('Celluloid::IncidentLogger') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::IncidentLogger::Severity', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Logger::Severity', RubyLint.registry))
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 7 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2346..2444

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

    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

      defs.define_constant('Celluloid::PoolManager::IncidentLogger') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::IncidentLogger::Severity', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Logger::Severity', RubyLint.registry))
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 7 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1090..1188

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

    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

      defs.define_constant('Celluloid::IncidentReporter') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::Notifications', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::InstanceMethods', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid', RubyLint.registry))
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 4 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2448..2508

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

    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

      defs.define_constant('Celluloid::PoolManager::IncidentReporter') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::Notifications', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid::InstanceMethods', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Celluloid', RubyLint.registry))
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 4 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1192..1252

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

    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

      defs.define_constant('Celluloid::ClassMethods') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('===') do |method|
          method.define_argument('other')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2056..2110

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

    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

      defs.define_constant('Celluloid::PoolManager::ClassMethods') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('===') do |method|
          method.define_argument('other')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 677..731

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

    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

      defs.define_constant('Celluloid::Task') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('current')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3236..3296

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

    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

      defs.define_constant('Celluloid::PoolManager::Task') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('current')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4390..4450

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

    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

      defs.define_constant('Celluloid::StackDump::TaskState::Passwd') do |klass|
        klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('arg1')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4054..4110

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

    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

      defs.define_constant('Celluloid::StackDump::ThreadState::Passwd') do |klass|
        klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('arg1')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3906..3962

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

    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

      defs.define_constant('Celluloid::ActorProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SyncProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1876..1923

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

    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

      defs.define_constant('Celluloid::PoolManager::ActorProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SyncProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 3 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 423..470

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

    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

      defs.define_constant('Celluloid::LogEvent') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('<=>') do |method|
          method.define_argument('other')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2635..2679

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

    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

      defs.define_constant('Celluloid::FSM') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('included') do |method|
          method.define_argument('klass')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2200..2246

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

    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

      defs.define_constant('Celluloid::PoolManager::LogEvent') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('<=>') do |method|
          method.define_argument('other')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1379..1423

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

    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

      defs.define_constant('Celluloid::PoolManager::FSM') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('included') do |method|
          method.define_argument('klass')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 843..889

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

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

      defs.define_constant('Celluloid::StackDump::TaskState::Group') do |klass|
        klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('arg1')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 24 other locations - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4012..4050
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2297..2335
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2581..2619
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2815..2853
    lib/ruby-lint/definitions/gems/rspec.rb on lines 3880..3918
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4048..4086
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4219..4257
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4387..4425
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4575..4613
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4909..4947
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5384..5422
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5582..5620
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5762..5800
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5990..6028
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6172..6210
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6354..6392
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6533..6571
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6698..6736
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6915..6953
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7090..7128
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7278..7316
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7509..7547
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8217..8255
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8592..8630

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

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

      defs.define_constant('Celluloid::StackDump::ThreadState::Group') do |klass|
        klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('arg1')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 24 other locations - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3864..3902
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2297..2335
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2581..2619
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2815..2853
    lib/ruby-lint/definitions/gems/rspec.rb on lines 3880..3918
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4048..4086
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4219..4257
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4387..4425
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4575..4613
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4909..4947
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5384..5422
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5582..5620
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5762..5800
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5990..6028
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6172..6210
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6354..6392
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6533..6571
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6698..6736
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6915..6953
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7090..7128
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7278..7316
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7509..7547
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8217..8255
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8592..8630

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

    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

      defs.define_constant('Celluloid::PoolManager::InternalPool') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('active?')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1271..1314

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

    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

      defs.define_constant('Celluloid::InternalPool') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('active?')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2527..2570

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

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

      defs.define_constant('Celluloid::StackDump::TaskState::Tms') do |klass|
        klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('arg1')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 24 other locations - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4114..4150
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2417..2453
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2701..2737
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2935..2971
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4000..4036
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4168..4204
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4339..4375
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4507..4543
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4695..4731
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5029..5065
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5504..5540
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5702..5738
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5882..5918
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6110..6146
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6292..6328
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6474..6510
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6653..6689
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6818..6854
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7035..7071
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7210..7246
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7398..7434
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7634..7670
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8337..8373
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8712..8748

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

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

      defs.define_constant('Celluloid::StackDump::ThreadState::Tms') do |klass|
        klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
    
        klass.define_method('[]') do |method|
          method.define_rest_argument('arg1')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 24 other locations - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3966..4002
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2417..2453
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2701..2737
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2935..2971
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4000..4036
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4168..4204
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4339..4375
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4507..4543
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4695..4731
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5029..5065
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5504..5540
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5702..5738
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5882..5918
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6110..6146
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6292..6328
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6474..6510
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6653..6689
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6818..6854
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7035..7071
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7210..7246
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7398..7434
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7634..7670
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8337..8373
    lib/ruby-lint/definitions/gems/rspec.rb on lines 8712..8748

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

    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

      defs.define_constant('Celluloid::Mailbox') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2720..2757

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

    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

      defs.define_constant('Celluloid::PoolManager::Mailbox') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1464..1501

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

    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

      defs.define_constant('Celluloid::PoolManager::Logger') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('crash') do |method|
          method.define_argument('string')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1427..1460

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

    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

      defs.define_constant('Celluloid::Logger') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('crash') do |method|
          method.define_argument('string')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2683..2716

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

    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

      defs.define_constant('Celluloid::SyncCall') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Call', RubyLint.registry))
    
        klass.define_instance_method('chain_id')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3168..3200

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

    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

      defs.define_constant('Celluloid::PoolManager::SyncCall') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Call', RubyLint.registry))
    
        klass.define_instance_method('chain_id')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 2 hrs to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4285..4317

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

    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

      defs.define_constant('Celluloid::Future') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('new') do |method|
          method.define_rest_argument('args')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2255..2286

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

    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

      defs.define_constant('Celluloid::PoolManager::Future') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('new') do |method|
          method.define_rest_argument('args')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 947..978

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

    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

      defs.define_constant('Celluloid::Registry') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('root')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2889..2919

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

    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

      defs.define_constant('Celluloid::PoolManager::Registry') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('root')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3658..3688

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

    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

      defs.define_constant('Celluloid::Incident') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('events')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2313..2342

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

    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

      defs.define_constant('Celluloid::PoolManager::Incident') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('events')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1057..1086

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

    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

      defs.define_constant('Celluloid::AsyncProxy::BasicObject') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('!')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 4 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 194..222
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 473..501
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1020..1048
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4348..4376

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

    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

      defs.define_constant('Celluloid::AbstractProxy::BasicObject') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('!')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 4 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 473..501
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 541..569
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1020..1048
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4348..4376

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

    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

      defs.define_constant('Celluloid::ActorProxy::BasicObject') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('!')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 4 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 194..222
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 541..569
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1020..1048
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4348..4376

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

    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

      defs.define_constant('Celluloid::FutureProxy::BasicObject') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('!')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 4 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 194..222
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 473..501
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 541..569
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4348..4376

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

    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

      defs.define_constant('Celluloid::SyncProxy::BasicObject') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('!')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 4 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 194..222
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 473..501
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 541..569
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1020..1048

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

    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

      defs.define_constant('Celluloid::PoolManager::SyncProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::AbstractProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4320..4344

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

    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

      defs.define_constant('Celluloid::SyncProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::AbstractProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3203..3227

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

    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

      defs.define_constant('Celluloid::StackDump') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('actors')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3005..3033

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

    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

      defs.define_constant('Celluloid::PoolManager::StackDump') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('actors')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3774..3802

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

    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

      defs.define_constant('Celluloid::EventedMailbox') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Mailbox', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
          method.define_argument('message')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2158..2182

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

    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

      defs.define_constant('Celluloid::PoolManager::EventedMailbox') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Mailbox', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
          method.define_argument('message')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 801..825

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

    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

      defs.define_constant('Celluloid::RingBuffer') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
          method.define_argument('value')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2945..2970

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

    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

      defs.define_constant('Celluloid::PoolManager::RingBuffer') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
          method.define_argument('value')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3714..3739

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

    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

      defs.define_constant('Celluloid::PoolManager::Supervisor') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('root')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4262..4281

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

    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

      defs.define_constant('Celluloid::Supervisor') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('root')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3145..3164

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

    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

      defs.define_constant('Celluloid::PoolManager::AsyncProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::AbstractProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 518..537
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 997..1016
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2290..2309

    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

      defs.define_constant('Celluloid::AsyncProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::AbstractProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 997..1016
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1934..1953
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2290..2309

    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

      defs.define_constant('Celluloid::FutureProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::AbstractProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 518..537
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1934..1953
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2290..2309

    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

      defs.define_constant('Celluloid::PoolManager::FutureProxy') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::AbstractProxy', RubyLint.registry))
    
        klass.define_instance_method('__class__')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 518..537
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 997..1016
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1934..1953

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

      defs.define_constant('Celluloid::PoolManager::Receiver') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('initialize') do |method|
          method.define_argument('block')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3615..3635

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

      defs.define_constant('Celluloid::Receiver') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('initialize') do |method|
          method.define_argument('block')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2846..2866

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

      defs.define_constant('Celluloid::PoolManager::Call') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('arguments')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 643..664

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

    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

      defs.define_constant('Celluloid::Call') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('arguments')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2022..2043

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

    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

      defs.define_constant('Celluloid::PoolManager::Links') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1356..1376

    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

      defs.define_constant('Celluloid::Links') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
    
        klass.define_instance_method('<<') do |method|
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2612..2632

    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

      defs.define_constant('Celluloid::BlockProxy') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('block')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1981..2000

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 51.

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

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

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

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

    Refactorings

    Further Reading

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

      defs.define_constant('Celluloid::PoolManager::BlockProxy') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('block')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 602..621

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 51.

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

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

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

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

    Refactorings

    Further Reading

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

      defs.define_constant('Celluloid::PoolManager::Thread') do |klass|
        klass.inherits(defs.constant_proxy('Thread', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4728..4751

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 50.

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

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

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

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

    Refactorings

    Further Reading

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

      defs.define_constant('Celluloid::Thread') do |klass|
        klass.inherits(defs.constant_proxy('Thread', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3544..3567

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 50.

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

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

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

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

    Refactorings

    Further Reading

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

      defs.define_constant('Celluloid::PoolManager::Method') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('arity')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1514..1531

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

      defs.define_constant('Celluloid::Method') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('arity')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2770..2787

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

      defs.define_constant('Celluloid::PoolManager::TaskThread') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Task', RubyLint.registry))
    
        klass.define_instance_method('backtrace')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4692..4710

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

    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

      defs.define_constant('Celluloid::Notifications') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('notifier')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2812..2828

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

    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

      defs.define_constant('Celluloid::PoolManager::Notifications') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_method('notifier')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1556..1572

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

    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

      defs.define_constant('Celluloid::TaskThread') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Task', RubyLint.registry))
    
        klass.define_instance_method('backtrace')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 1 hr to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3518..3536

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

    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

      defs.define_constant('Celluloid::PoolManager::BlockCall') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('call')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 55 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 583..599

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

    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

      defs.define_constant('Celluloid::BlockCall') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('call')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 55 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1962..1978

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

    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

      defs.define_constant('Celluloid::PoolManager::ThreadHandle') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('alive?')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 55 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4852..4869

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

    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

      defs.define_constant('Celluloid::LinkingRequest') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 55 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2578..2594

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

    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

      defs.define_constant('Celluloid::ThreadHandle') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('alive?')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 55 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3570..3587

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

    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

      defs.define_constant('Celluloid::PoolManager::LinkingRequest') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 55 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1322..1338

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

    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

      defs.define_constant('Celluloid::Actor::Sleeper') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('before_suspend') do |method|
          method.define_argument('task')
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 50 mins to fix
    lib/ruby-lint/definitions/rails/rails.rb on lines 1672..1686

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

    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

      defs.define_constant('Celluloid::PoolManager::Receivers') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('fire_timers')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 50 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3639..3655

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

    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

      defs.define_constant('Celluloid::Receivers') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('fire_timers')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 50 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2870..2886

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

    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

      defs.define_constant('Celluloid::PoolManager::SignalConditionRequest') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('call')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 45 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3742..3756
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1849..1863
    lib/ruby-lint/definitions/rails/active_record.rb on lines 4205..4219

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

    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

      defs.define_constant('Celluloid::SignalConditionRequest') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('call')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 45 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2973..2987
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1849..1863
    lib/ruby-lint/definitions/rails/active_record.rb on lines 4205..4219

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

    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

      defs.define_constant('Celluloid::PoolManager::Response') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('call')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 2 other locations - About 45 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3692..3706
    lib/ruby-lint/definitions/gems/nokogiri.rb on lines 2245..2259

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

    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

      defs.define_constant('Celluloid::Response') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('call')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 2 other locations - About 45 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2923..2937
    lib/ruby-lint/definitions/gems/nokogiri.rb on lines 2245..2259

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

    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

      defs.define_constant('Celluloid::PoolManager::Condition') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('broadcast') do |method|
          method.define_optional_argument('value')
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 40 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 735..750

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

    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

      defs.define_constant('Celluloid::Condition') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('broadcast') do |method|
          method.define_optional_argument('value')
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 1 other location - About 40 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2114..2129

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

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

      defs.define_constant('Celluloid::PoolManager::LinkingResponse') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 40 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 828..840
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 982..994
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1341..1353
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2185..2197
    lib/ruby-lint/definitions/rails/active_record.rb on lines 10845..10857

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

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

      defs.define_constant('Celluloid::ExitEvent') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 40 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 982..994
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1341..1353
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2185..2197
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2597..2609
    lib/ruby-lint/definitions/rails/active_record.rb on lines 10845..10857

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

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

      defs.define_constant('Celluloid::LinkingResponse') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 40 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 828..840
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 982..994
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2185..2197
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2597..2609
    lib/ruby-lint/definitions/rails/active_record.rb on lines 10845..10857

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

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

      defs.define_constant('Celluloid::Future::Result') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('future')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 40 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 828..840
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1341..1353
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2185..2197
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2597..2609
    lib/ruby-lint/definitions/rails/active_record.rb on lines 10845..10857

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

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

      defs.define_constant('Celluloid::PoolManager::ExitEvent') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('actor')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 40 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 828..840
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 982..994
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1341..1353
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2597..2609
    lib/ruby-lint/definitions/rails/active_record.rb on lines 10845..10857

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

    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

      defs.define_constant('Celluloid::Signals') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('broadcast') do |method|
          method.define_argument('name')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 35 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2990..3001
    lib/ruby-lint/definitions/gems/lib_xml.rb on lines 4564..4575
    lib/ruby-lint/definitions/gems/test.rb on lines 1418..1429

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

    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

      defs.define_constant('Celluloid::FSM::ClassMethods') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('default_state') do |method|
          method.define_optional_argument('new_default')
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 2 other locations - About 35 mins to fix
    lib/ruby-lint/definitions/core/gem.rb on lines 1931..1943
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 8833..8845

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

    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

      defs.define_constant('Celluloid::PoolManager::Signals') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('broadcast') do |method|
          method.define_argument('name')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 3 other locations - About 35 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3759..3770
    lib/ruby-lint/definitions/gems/lib_xml.rb on lines 4564..4575
    lib/ruby-lint/definitions/gems/test.rb on lines 1418..1429

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

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

      defs.define_constant('Celluloid::PoolManager::BlockResponse') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('dispatch')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 35 mins to fix
    lib/ruby-lint/definitions/core/gem.rb on lines 3063..3072
    lib/ruby-lint/definitions/core/gem.rb on lines 3076..3085
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 624..633
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 2913..2922
    lib/ruby-lint/definitions/rails/arel.rb on lines 3790..3799

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

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

      defs.define_constant('Celluloid::BlockResponse') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('dispatch')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 35 mins to fix
    lib/ruby-lint/definitions/core/gem.rb on lines 3063..3072
    lib/ruby-lint/definitions/core/gem.rb on lines 3076..3085
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2003..2012
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 2913..2922
    lib/ruby-lint/definitions/rails/arel.rb on lines 3790..3799

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

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

      defs.define_constant('Celluloid::AbortError') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Error', RubyLint.registry))
    
        klass.define_instance_method('cause')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 34 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/core/gem.rb on lines 1282..1290
    lib/ruby-lint/definitions/core/webrick.rb on lines 2190..2198
    lib/ruby-lint/definitions/core/webrick.rb on lines 2222..2230
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1683..1691
    lib/ruby-lint/definitions/gems/devise.rb on lines 1145..1153
    lib/ruby-lint/definitions/gems/devise.rb on lines 2124..2132
    lib/ruby-lint/definitions/gems/devise.rb on lines 2144..2152
    lib/ruby-lint/definitions/gems/devise.rb on lines 2162..2170
    lib/ruby-lint/definitions/gems/devise.rb on lines 2182..2190
    lib/ruby-lint/definitions/gems/nokogiri.rb on lines 882..890
    lib/ruby-lint/definitions/gems/rspec.rb on lines 200..208
    lib/ruby-lint/definitions/gems/rspec.rb on lines 1935..1943
    lib/ruby-lint/definitions/gems/rspec.rb on lines 3051..3059
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7840..7848
    lib/ruby-lint/definitions/gems/test.rb on lines 767..775
    lib/ruby-lint/definitions/gems/test.rb on lines 2381..2389
    lib/ruby-lint/definitions/gems/test.rb on lines 2585..2593
    lib/ruby-lint/definitions/rails/action_view.rb on lines 3769..3777
    lib/ruby-lint/definitions/rails/action_view.rb on lines 3797..3805
    lib/ruby-lint/definitions/rails/active_record.rb on lines 7031..7039
    lib/ruby-lint/definitions/rails/active_support.rb on lines 1680..1688
    lib/ruby-lint/definitions/rails/active_support.rb on lines 2327..2335
    lib/ruby-lint/definitions/rails/active_support.rb on lines 2742..2750
    lib/ruby-lint/definitions/rails/active_support.rb on lines 2770..2778
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4554..4562
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4582..4590
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4610..4618
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4638..4646
    lib/ruby-lint/definitions/rails/arel.rb on lines 2055..2063
    lib/ruby-lint/definitions/rails/arel.rb on lines 2083..2091
    lib/ruby-lint/definitions/rails/arel.rb on lines 5522..5530
    lib/ruby-lint/definitions/rails/arel.rb on lines 5550..5558
    lib/ruby-lint/definitions/rails/arel.rb on lines 7040..7048
    lib/ruby-lint/definitions/rails/arel.rb on lines 7068..7076

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

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

      defs.define_constant('Celluloid::PoolManager::AbortError') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Error', RubyLint.registry))
    
        klass.define_instance_method('cause')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 34 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/core/gem.rb on lines 1282..1290
    lib/ruby-lint/definitions/core/webrick.rb on lines 2190..2198
    lib/ruby-lint/definitions/core/webrick.rb on lines 2222..2230
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 176..184
    lib/ruby-lint/definitions/gems/devise.rb on lines 1145..1153
    lib/ruby-lint/definitions/gems/devise.rb on lines 2124..2132
    lib/ruby-lint/definitions/gems/devise.rb on lines 2144..2152
    lib/ruby-lint/definitions/gems/devise.rb on lines 2162..2170
    lib/ruby-lint/definitions/gems/devise.rb on lines 2182..2190
    lib/ruby-lint/definitions/gems/nokogiri.rb on lines 882..890
    lib/ruby-lint/definitions/gems/rspec.rb on lines 200..208
    lib/ruby-lint/definitions/gems/rspec.rb on lines 1935..1943
    lib/ruby-lint/definitions/gems/rspec.rb on lines 3051..3059
    lib/ruby-lint/definitions/gems/rspec.rb on lines 7840..7848
    lib/ruby-lint/definitions/gems/test.rb on lines 767..775
    lib/ruby-lint/definitions/gems/test.rb on lines 2381..2389
    lib/ruby-lint/definitions/gems/test.rb on lines 2585..2593
    lib/ruby-lint/definitions/rails/action_view.rb on lines 3769..3777
    lib/ruby-lint/definitions/rails/action_view.rb on lines 3797..3805
    lib/ruby-lint/definitions/rails/active_record.rb on lines 7031..7039
    lib/ruby-lint/definitions/rails/active_support.rb on lines 1680..1688
    lib/ruby-lint/definitions/rails/active_support.rb on lines 2327..2335
    lib/ruby-lint/definitions/rails/active_support.rb on lines 2742..2750
    lib/ruby-lint/definitions/rails/active_support.rb on lines 2770..2778
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4554..4562
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4582..4590
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4610..4618
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4638..4646
    lib/ruby-lint/definitions/rails/arel.rb on lines 2055..2063
    lib/ruby-lint/definitions/rails/arel.rb on lines 2083..2091
    lib/ruby-lint/definitions/rails/arel.rb on lines 5522..5530
    lib/ruby-lint/definitions/rails/arel.rb on lines 5550..5558
    lib/ruby-lint/definitions/rails/arel.rb on lines 7040..7048
    lib/ruby-lint/definitions/rails/arel.rb on lines 7068..7076

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

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

      defs.define_constant('Celluloid::PoolManager::NamingRequest') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('initialize') do |method|
          method.define_argument('name')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 16 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/core/drb.rb on lines 291..300
    lib/ruby-lint/definitions/core/name_error.rb on lines 7..16
    lib/ruby-lint/definitions/core/socket.rb on lines 2967..2976
    lib/ruby-lint/definitions/core/socket.rb on lines 3018..3027
    lib/ruby-lint/definitions/core/socket.rb on lines 3069..3078
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1534..1543
    lib/ruby-lint/definitions/gems/devise.rb on lines 1733..1742
    lib/ruby-lint/definitions/gems/test.rb on lines 593..602
    lib/ruby-lint/definitions/gems/test.rb on lines 677..686
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 1872..1881
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 3422..3431
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1528..1537
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1625..1634
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1643..1652
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1878..1887
    lib/ruby-lint/definitions/rails/active_record.rb on lines 11653..11662

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

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

      defs.define_constant('Celluloid::NamingRequest') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::SystemEvent', RubyLint.registry))
    
        klass.define_instance_method('initialize') do |method|
          method.define_argument('name')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 16 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/core/drb.rb on lines 291..300
    lib/ruby-lint/definitions/core/name_error.rb on lines 7..16
    lib/ruby-lint/definitions/core/socket.rb on lines 2967..2976
    lib/ruby-lint/definitions/core/socket.rb on lines 3018..3027
    lib/ruby-lint/definitions/core/socket.rb on lines 3069..3078
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2790..2799
    lib/ruby-lint/definitions/gems/devise.rb on lines 1733..1742
    lib/ruby-lint/definitions/gems/test.rb on lines 593..602
    lib/ruby-lint/definitions/gems/test.rb on lines 677..686
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 1872..1881
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 3422..3431
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1528..1537
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1625..1634
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1643..1652
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 1878..1887
    lib/ruby-lint/definitions/rails/active_record.rb on lines 11653..11662

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

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

      defs.define_constant('Celluloid::PoolManager::InstanceMethods') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('bare_object')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 15 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 341..354
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 2338..2351
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 2354..2367
    lib/ruby-lint/definitions/core/syck.rb on lines 415..428
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 1255..1268
    lib/ruby-lint/definitions/gems/glib.rb on lines 1389..1402
    lib/ruby-lint/definitions/gems/glib.rb on lines 3262..3275
    lib/ruby-lint/definitions/gems/gtk.rb on lines 14063..14076
    lib/ruby-lint/definitions/gems/minitest.rb on lines 689..702
    lib/ruby-lint/definitions/gems/minitest.rb on lines 756..769
    lib/ruby-lint/definitions/gems/nokogiri.rb on lines 4630..4643
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 2758..2771
    lib/ruby-lint/definitions/rails/active_model.rb on lines 567..580
    lib/ruby-lint/definitions/rails/active_record.rb on lines 11491..11504
    lib/ruby-lint/definitions/rails/rails.rb on lines 2112..2125

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

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

      defs.define_constant('Celluloid::InstanceMethods') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('bare_object')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 15 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 341..354
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 2338..2351
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 2354..2367
    lib/ruby-lint/definitions/core/syck.rb on lines 415..428
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2511..2524
    lib/ruby-lint/definitions/gems/glib.rb on lines 1389..1402
    lib/ruby-lint/definitions/gems/glib.rb on lines 3262..3275
    lib/ruby-lint/definitions/gems/gtk.rb on lines 14063..14076
    lib/ruby-lint/definitions/gems/minitest.rb on lines 689..702
    lib/ruby-lint/definitions/gems/minitest.rb on lines 756..769
    lib/ruby-lint/definitions/gems/nokogiri.rb on lines 4630..4643
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 2758..2771
    lib/ruby-lint/definitions/rails/active_model.rb on lines 567..580
    lib/ruby-lint/definitions/rails/active_record.rb on lines 11491..11504
    lib/ruby-lint/definitions/rails/rails.rb on lines 2112..2125

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

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

      defs.define_constant('Celluloid::TaskFiber') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Task', RubyLint.registry))
    
        klass.define_instance_method('create')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3299..3310
    lib/ruby-lint/definitions/rails/active_record.rb on lines 411..422
    lib/ruby-lint/definitions/rails/active_record.rb on lines 1937..1948
    lib/ruby-lint/definitions/rails/active_record.rb on lines 9582..9593
    lib/ruby-lint/definitions/rails/active_support.rb on lines 1397..1408

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

      defs.define_constant('Celluloid::PoolManager::TaskFiber') do |klass|
        klass.inherits(defs.constant_proxy('Celluloid::Task', RubyLint.registry))
    
        klass.define_instance_method('create')
    
    
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 5 other locations - About 25 mins to fix
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 4463..4474
    lib/ruby-lint/definitions/rails/active_record.rb on lines 411..422
    lib/ruby-lint/definitions/rails/active_record.rb on lines 1937..1948
    lib/ruby-lint/definitions/rails/active_record.rb on lines 9582..9593
    lib/ruby-lint/definitions/rails/active_support.rb on lines 1397..1408

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

      defs.define_constant('Celluloid::StackDump::DisplayBacktrace') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('display_backtrace') do |method|
          method.define_argument('backtrace')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 28 other locations - About 20 mins to fix
    lib/ruby-lint/definitions/core/option_parser.rb on lines 1228..1234
    lib/ruby-lint/definitions/core/option_parser.rb on lines 1253..1259
    lib/ruby-lint/definitions/core/option_parser.rb on lines 1272..1278
    lib/ruby-lint/definitions/gems/gtk.rb on lines 8530..8536
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 4717..4723
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 5174..5180
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 5659..5665
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 8823..8829
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 8875..8881
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 8909..8915
    lib/ruby-lint/definitions/gems/nokogiri.rb on lines 700..706
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4847..4853
    lib/ruby-lint/definitions/gems/rspec.rb on lines 4857..4863
    lib/ruby-lint/definitions/gems/rspec.rb on lines 5069..5075
    lib/ruby-lint/definitions/rails/action_view.rb on lines 4433..4439
    lib/ruby-lint/definitions/rails/active_model.rb on lines 1213..1219
    lib/ruby-lint/definitions/rails/active_model.rb on lines 1492..1498
    lib/ruby-lint/definitions/rails/active_model.rb on lines 1502..1508
    lib/ruby-lint/definitions/rails/active_record.rb on lines 72..78
    lib/ruby-lint/definitions/rails/active_record.rb on lines 1578..1584
    lib/ruby-lint/definitions/rails/active_record.rb on lines 1641..1647
    lib/ruby-lint/definitions/rails/active_record.rb on lines 3115..3121
    lib/ruby-lint/definitions/rails/active_record.rb on lines 8675..8681
    lib/ruby-lint/definitions/rails/active_record.rb on lines 9223..9229
    lib/ruby-lint/definitions/rails/active_record.rb on lines 9286..9292
    lib/ruby-lint/definitions/rails/active_record.rb on lines 10765..10771
    lib/ruby-lint/definitions/rails/active_record.rb on lines 11715..11721
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4152..4158

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

    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

      defs.define_constant('Celluloid::Thread::ConditionVariable') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('broadcast')
    
    
    Severity: Minor
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 2 other locations - About 20 mins to fix
    lib/ruby-lint/definitions/core/socket.rb on lines 2381..2389
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 5866..5874

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

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

      defs.define_constant('Celluloid::PoolManager::Properties') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('property') do |method|
          method.define_argument('name')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 39 other locations - About 15 mins to fix
    lib/ruby-lint/definitions/core/abbrev.rb on lines 7..12
    lib/ruby-lint/definitions/core/erb.rb on lines 255..260
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 2774..2779
    lib/ruby-lint/definitions/core/option_parser.rb on lines 1263..1268
    lib/ruby-lint/definitions/core/option_parser.rb on lines 1282..1287
    lib/ruby-lint/definitions/core/uri.rb on lines 1051..1056
    lib/ruby-lint/definitions/core/uri.rb on lines 1319..1324
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 3606..3611
    lib/ruby-lint/definitions/gems/devise.rb on lines 1824..1829
    lib/ruby-lint/definitions/gems/lib_xml.rb on lines 6807..6812
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 762..767
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 3693..3698
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 4187..4192
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 6376..6381
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 8524..8529
    lib/ruby-lint/definitions/gems/rspec.rb on lines 92..97
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2217..2222
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2226..2231
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6514..6519
    lib/ruby-lint/definitions/gems/test.rb on lines 1918..1923
    lib/ruby-lint/definitions/gems/test.rb on lines 2602..2607
    lib/ruby-lint/definitions/gems/test.rb on lines 2626..2631
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 967..972
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 1015..1020
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 2670..2675
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 659..664
    lib/ruby-lint/definitions/rails/action_view.rb on lines 526..531
    lib/ruby-lint/definitions/rails/action_view.rb on lines 3675..3680
    lib/ruby-lint/definitions/rails/action_view.rb on lines 5274..5279
    lib/ruby-lint/definitions/rails/active_record.rb on lines 36..41
    lib/ruby-lint/definitions/rails/active_record.rb on lines 1877..1882
    lib/ruby-lint/definitions/rails/active_record.rb on lines 5610..5615
    lib/ruby-lint/definitions/rails/active_record.rb on lines 9522..9527
    lib/ruby-lint/definitions/rails/active_support.rb on lines 701..706
    lib/ruby-lint/definitions/rails/active_support.rb on lines 1500..1505
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4319..4324
    lib/ruby-lint/definitions/rails/active_support.rb on lines 5166..5171
    lib/ruby-lint/definitions/rails/arel.rb on lines 7948..7953
    lib/ruby-lint/definitions/rails/rails.rb on lines 667..672

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

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

      defs.define_constant('Celluloid::Properties') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
        klass.define_instance_method('property') do |method|
          method.define_argument('name')
    Severity: Major
    Found in lib/ruby-lint/definitions/gems/celluloid.rb and 39 other locations - About 15 mins to fix
    lib/ruby-lint/definitions/core/abbrev.rb on lines 7..12
    lib/ruby-lint/definitions/core/erb.rb on lines 255..260
    lib/ruby-lint/definitions/core/open_ssl.rb on lines 2774..2779
    lib/ruby-lint/definitions/core/option_parser.rb on lines 1263..1268
    lib/ruby-lint/definitions/core/option_parser.rb on lines 1282..1287
    lib/ruby-lint/definitions/core/uri.rb on lines 1051..1056
    lib/ruby-lint/definitions/core/uri.rb on lines 1319..1324
    lib/ruby-lint/definitions/gems/celluloid.rb on lines 2837..2842
    lib/ruby-lint/definitions/gems/devise.rb on lines 1824..1829
    lib/ruby-lint/definitions/gems/lib_xml.rb on lines 6807..6812
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 762..767
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 3693..3698
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 4187..4192
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 6376..6381
    lib/ruby-lint/definitions/gems/mongoid.rb on lines 8524..8529
    lib/ruby-lint/definitions/gems/rspec.rb on lines 92..97
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2217..2222
    lib/ruby-lint/definitions/gems/rspec.rb on lines 2226..2231
    lib/ruby-lint/definitions/gems/rspec.rb on lines 6514..6519
    lib/ruby-lint/definitions/gems/test.rb on lines 1918..1923
    lib/ruby-lint/definitions/gems/test.rb on lines 2602..2607
    lib/ruby-lint/definitions/gems/test.rb on lines 2626..2631
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 967..972
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 1015..1020
    lib/ruby-lint/definitions/rails/action_controller.rb on lines 2670..2675
    lib/ruby-lint/definitions/rails/action_dispatch.rb on lines 659..664
    lib/ruby-lint/definitions/rails/action_view.rb on lines 526..531
    lib/ruby-lint/definitions/rails/action_view.rb on lines 3675..3680
    lib/ruby-lint/definitions/rails/action_view.rb on lines 5274..5279
    lib/ruby-lint/definitions/rails/active_record.rb on lines 36..41
    lib/ruby-lint/definitions/rails/active_record.rb on lines 1877..1882
    lib/ruby-lint/definitions/rails/active_record.rb on lines 5610..5615
    lib/ruby-lint/definitions/rails/active_record.rb on lines 9522..9527
    lib/ruby-lint/definitions/rails/active_support.rb on lines 701..706
    lib/ruby-lint/definitions/rails/active_support.rb on lines 1500..1505
    lib/ruby-lint/definitions/rails/active_support.rb on lines 4319..4324
    lib/ruby-lint/definitions/rails/active_support.rb on lines 5166..5171
    lib/ruby-lint/definitions/rails/arel.rb on lines 7948..7953
    lib/ruby-lint/definitions/rails/rails.rb on lines 667..672

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

    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

    There are no issues that match your filters.

    Category
    Status