Description
Following what have been done in the Naming/RescuedExceptionsVariableName cop in the rubocop repo, we should also handle the Rails version that use rescue_from
:
class MyController < ApplicationController
rescue_from MyException do |exception| # <= should be flagged with an offense
# do something
end
end
Should this cop read the configuration of Naming/RescuedExceptionsVariableName
or have its own duplicated ?
Metadata
Metadata
Assignees
Labels
No labels