Maintenance: Activated rubocop rule Style/RescueStandardError.

This commit is contained in:
Thorsten Eckel 2020-06-22 11:04:57 +02:00
parent f7e82bb3f9
commit 0eedc58558
3 changed files with 6 additions and 7 deletions

View file

@ -68,6 +68,11 @@ Style/TrailingCommaInArguments:
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
Enabled: false
Style/RescueStandardError:
Description: 'Avoid rescuing without specifying an error class.'
Enabled: true
EnforcedStyle: implicit
Layout/SpaceInsideParens:
Description: 'No spaces after ( or before ).'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'

View file

@ -83,9 +83,3 @@ Rails/HasManyOrHasOneDependent:
Style/Documentation:
Enabled: false
# Offense count: 172
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Enabled: false

View file

@ -347,7 +347,7 @@ get instance of channel driver
options[:outbound][:options][:password] = result[:access_token]
save!
rescue StandardError => e
rescue => e
logger.error e
raise "Failed to refresh XOAUTH2 access_token of provider '#{options[:auth][:provider]}'! #{e.inspect}"
end