1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-23 14:46:52 +09:00

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:
- '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).
# Configuration parameters: Mode.
Style/StringConcatenation:

View File

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

View File

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