codeclimate/codeclimate-yaml

View on GitHub
lib/cc/yaml/nodes/root.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use alias instead of alias_method in a class body.
Open

        alias_method :parseable?, :parseable
Severity: Minor
Found in lib/cc/yaml/nodes/root.rb by rubocop

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