codeclimate/codeclimate

View on GitHub
lib/cc/analyzer.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
94%

When using method_missing, define respond_to_missing?.
Open

      def method_missing(*)
        yield if block_given?
      end
Severity: Minor
Found in lib/cc/analyzer.rb by rubocop

Checks for the presence of method_missing without also defining respond_to_missing?.

Example:

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

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

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

When using method_missing, define respond_to_missing?.
Open

      def method_missing(*)
        yield if block_given?
      end
Severity: Minor
Found in lib/cc/analyzer.rb by rubocop

Checks for the presence of method_missing without also defining respond_to_missing?.

Example:

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

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

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

There are no issues that match your filters.

Category
Status