Skip to content

Commit

Permalink
Disable Style/SignalException cop
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Apr 29, 2024
1 parent 7d3fe2b commit 4f7ff74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/devise/strategies/two_factor_ldap_authenticatable.rb
Expand Up @@ -16,7 +16,7 @@ def authenticate!
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

Expand Down
2 changes: 1 addition & 1 deletion lib/devise/strategies/two_factor_pam_authenticatable.rb
Expand Up @@ -15,7 +15,7 @@ def authenticate!
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

Expand Down

0 comments on commit 4f7ff74

Please sign in to comment.