sausage-sandwich/ruby_sandwich

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

Summary

Maintainability
A
0 mins
Test Coverage

Use alias instead of alias_method in a class body.
Wontfix

  alias_method :__getobj__, :recipe

This cop enforces the use of either #alias or #alias_method depending on configuration. It also flags uses of alias :symbol rather than alias bareword.

Example: EnforcedStyle: prefer_alias (default)

# bad
alias_method :bar, :foo
alias :bar :foo

# good
alias bar foo

Example: EnforcedStyle: preferaliasmethod

# bad
alias :bar :foo
alias bar foo

# good
alias_method :bar, :foo

Use alias instead of alias_method in a class body.
Wontfix

  alias_method :__getobj__, :recipe_ingredient

This cop enforces the use of either #alias or #alias_method depending on configuration. It also flags uses of alias :symbol rather than alias bareword.

Example: EnforcedStyle: prefer_alias (default)

# bad
alias_method :bar, :foo
alias :bar :foo

# good
alias bar foo

Example: EnforcedStyle: preferaliasmethod

# bad
alias :bar :foo
alias bar foo

# good
alias_method :bar, :foo

There are no issues that match your filters.

Category
Status