Closed denzelem closed 4 years ago
I would suggest to disable the Lint/EmptyWhen (https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EmptyWhen) to allow comments.
Lint/EmptyWhen
Example:
case response.code when 200 # nothing to do, everything is fine when 403 Rails.logger.info('Here was an 403 error') else raise ArgumentError, "Unknown response code '#{response.code}'" end
Wdyt?
The empty when with a comment is such a thoughtful thing to do.
when
I would suggest to disable the
Lint/EmptyWhen
(https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EmptyWhen) to allow comments.Example:
Wdyt?