When using ActiveSupport's number pluralization, proper aliases should be used for readablity. For example, 1.day.ago
, while equivalent to 1.days.ago
, does not make grammatical sense.
Do not put a space between method name and left parenthesis, it makes the code ambiguous to read.
Using def self.method_name
or class << self
to define class methods is recommended.
The referer from the request
object should be accessed in a consistent way throughout the codebase. By default, this issue is raised when referrer
is used. However, it can be configured to raise this issue on usage of referer
in .rubocop.yml
.
By default, this issue is raised when using try!
in place of &.
. try
can be detected, too, if configured in .rubocop.yml
. For example, if try
is detected too