Disable Style/SignalException cop (#30064)

This commit is contained in:
Matt Jankowski 2024-04-29 08:32:06 -04:00 committed by GitHub
parent 7d3fe2b4c3
commit f1a4b4e228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 10 deletions

View file

@ -205,14 +205,6 @@ Style/SafeNavigation:
Exclude: Exclude:
- 'app/models/concerns/account/finder_concern.rb' - 'app/models/concerns/account/finder_concern.rb'
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
Exclude:
- 'lib/devise/strategies/two_factor_ldap_authenticatable.rb'
- 'lib/devise/strategies/two_factor_pam_authenticatable.rb'
# This cop supports unsafe autocorrection (--autocorrect-all). # This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode. # Configuration parameters: Mode.
Style/StringConcatenation: Style/StringConcatenation:

View file

@ -16,7 +16,7 @@ module Devise
if resource && !resource.otp_required_for_login? if resource && !resource.otp_required_for_login?
success!(resource) success!(resource)
else else
fail(:invalid) fail(:invalid) # rubocop:disable Style/SignalException -- method is from Warden::Strategies::Base
end end
end end

View file

@ -15,7 +15,7 @@ module Devise
if resource && !resource.otp_required_for_login? if resource && !resource.otp_required_for_login?
success!(resource) success!(resource)
else else
fail(:invalid) fail(:invalid) # rubocop:disable Style/SignalException -- method is from Warden::Strategies::Base
end end
end end