mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 12:34:58 +01:00
Disable Style/SignalException
cop (#30064)
This commit is contained in:
parent
7d3fe2b4c3
commit
f1a4b4e228
@ -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:
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user