sausage-sandwich/ruby_sandwich

View on GitHub
lib/sandwich/entities/nutrition_facts.rb

Summary

Maintainability
A
0 mins
Test Coverage

When defining the / operator, name its argument other.
Invalid

  def /(value)

This cop makes sure that certain binary operator methods have their sole parameter named other.

Example:

# bad
def +(amount); end

# good
def +(other); end

When defining the * operator, name its argument other.
Invalid

  def *(value)

This cop makes sure that certain binary operator methods have their sole parameter named other.

Example:

# bad
def +(amount); end

# good
def +(other); end

There are no issues that match your filters.

Category
Status