Skip to content

Commit ca4c9a7

Browse files
author
jordanbreen28
committed
(CONT-792) - Correct Style/RescueStandardError
1 parent 80a089f commit ca4c9a7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,6 @@ Style/OptionalBooleanParameter:
168168
- 'lib/puppet/functions/postgresql/postgresql_password.rb'
169169
- 'lib/puppet/type/postgresql_psql.rb'
170170

171-
# Offense count: 1
172-
# This cop supports safe autocorrection (--autocorrect).
173-
# Configuration parameters: EnforcedStyle.
174-
# SupportedStyles: implicit, explicit
175-
Style/RescueStandardError:
176-
Exclude:
177-
- 'spec/spec_helper.rb'
178-
179171
# Offense count: 3
180172
# This cop supports unsafe autocorrection (--autocorrect-all).
181173
# Configuration parameters: Mode.

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
begin
2828
default_facts.merge!(YAML.safe_load(File.read(f), [], [], true))
29-
rescue => e
29+
rescue StandardError => e
3030
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
3131
end
3232
end

0 commit comments

Comments
 (0)