File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
lib/grape/validations/validators Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -188,14 +188,6 @@ Style/NumericPredicate:
188
188
- ' spec/**/*'
189
189
- ' lib/grape/middleware/formatter.rb'
190
190
191
- # Offense count: 1
192
- # Cop supports --auto-correct.
193
- # Configuration parameters: EnforcedStyle.
194
- # SupportedStyles: implicit, explicit
195
- Style/RescueStandardError :
196
- Exclude :
197
- - ' lib/grape/validations/validators/coerce.rb'
198
-
199
191
# Offense count: 11
200
192
# Cop supports --auto-correct.
201
193
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
Original file line number Diff line number Diff line change 8
8
* [ #2002 ] ( https://github.com/ruby-grape/grape/pull/2002 ) : Objects allocation optimization (lazy_lookup) - [ @ericproulx ] ( https://github.com/ericproulx ) .
9
9
10
10
#### Fixes
11
+ * [ #2006 ] ( https://github.com/ruby-grape/grape/pull/2006 ) : Fix explicit rescue StandardError - [ @ericproulx ] ( https://github.com/ericproulx ) .
11
12
* [ #2004 ] ( https://github.com/ruby-grape/grape/pull/2004 ) : Rubocop fixes - [ @ericproulx ] ( https://github.com/ericproulx ) .
12
13
* [ #1995 ] ( https://github.com/ruby-grape/grape/pull/1995 ) : Fix: "undefined instance variables" and "method redefined" warnings - [ @nbeyer ] ( https://github.com/nbeyer ) .
13
14
* [ #1994 ] ( https://github.com/ruby-grape/grape/pull/1993 ) : Fix typos in README - [ @bellmyer ] ( https://github.com/bellmyer ) .
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def coerce_value(val)
76
76
converter . call ( val )
77
77
78
78
# Some custom types might fail, so it should be treated as an invalid value
79
- rescue
79
+ rescue StandardError
80
80
Types ::InvalidValue . new
81
81
end
82
82
You can’t perform that action at this time.
0 commit comments