dry-rb/dry-auto_inject

View on GitHub
lib/dry/auto_inject/injector.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

When using method_missing, define respond_to_missing? and fall back on super.
Open

      def method_missing(name, *args, &block)
        builder.__send__(name)
      end
Severity: Minor
Found in lib/dry/auto_inject/injector.rb by rubocop

This cop checks for the presence of method_missing without also defining respond_to_missing? and falling back on super.

Example:

#bad
def method_missing(name, *args)
  # ...
end

#good
def respond_to_missing?(name, include_private)
  # ...
end

def method_missing(name, *args)
  # ...
  super
end

Unused method argument - args. If it's necessary, use _ or _args as an argument name to indicate that it won't be used.
Open

      def method_missing(name, *args, &block)
Severity: Minor
Found in lib/dry/auto_inject/injector.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - block. If it's necessary, use _ or _block as an argument name to indicate that it won't be used.
Open

      def method_missing(name, *args, &block)
Severity: Minor
Found in lib/dry/auto_inject/injector.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - include_private. If it's necessary, use _ or _include_private as an argument name to indicate that it won't be used.
Open

      def respond_to?(name, include_private = false)
Severity: Minor
Found in lib/dry/auto_inject/injector.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

There are no issues that match your filters.

Category
Status