lib/rr/injections/double_injection.rb

Summary

Maintainability
B
5 hrs
Test Coverage

Class DoubleInjection has 26 methods (exceeds 20 allowed). Consider refactoring.
Open

    class DoubleInjection < Injection
      extend(Module.new do
        def find_or_create(subject_class, method_name)
          instances[subject_class][method_name.to_sym] ||= begin
            new(subject_class, method_name.to_sym).bind
Severity: Minor
Found in lib/rr/injections/double_injection.rb - About 3 hrs to fix

    Method bind_method has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def bind_method
            id = BoundObjects.size
            BoundObjects[id] = subject_class
    
            if KeywordArguments.fully_supported?
    Severity: Minor
    Found in lib/rr/injections/double_injection.rb - About 1 hr to fix

      Method dispatch_method has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              def dispatch_method(subject,
                                  subject_class,
                                  method_name,
                                  arguments,
                                  keyword_arguments,
      Severity: Minor
      Found in lib/rr/injections/double_injection.rb - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status