api/app/infrastructure/core/interpolations.rb
Unused method argument - style_name
. If it's necessary, use _
or _style_name
as an argument name to indicate that it won't be used. Open
Open
def hash(attachment, style_name)
- Read upRead up
- Exclude checks
This cop checks for unused method arguments.
Example:
# bad
def some_method(used, unused, _unused_but_allowed)
puts used
end
Example:
# good
def some_method(used, _unused, _unused_but_allowed)
puts used
end
Do not use parentheses for method calls with no arguments. Open
Open
attachment.hash_key().scan(/.{2}/).first(3).join('/'.freeze)
- Read upRead up
- Exclude checks
This cop checks for unwanted parentheses in parameterless method calls.
Example:
# bad
object.some_method()
# good
object.some_method