diff --git a/lib/rubocop/cop/style/raise_args.rb b/lib/rubocop/cop/style/raise_args.rb index 3440346a1d8..4f5b35d80a7 100644 --- a/lib/rubocop/cop/style/raise_args.rb +++ b/lib/rubocop/cop/style/raise_args.rb @@ -23,6 +23,7 @@ module Style # # good # raise StandardError, 'message' # fail 'message' + # raise MyCustomError # raise MyCustomError.new(arg1, arg2, arg3) # raise MyKwArgError.new(key1: val1, key2: val2) # @@ -37,6 +38,7 @@ module Style # # # good # raise StandardError.new('message') + # raise MyCustomError # raise MyCustomError.new(arg1, arg2, arg3) # fail 'message' class RaiseArgs < Base