File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,15 +49,6 @@ Lint/IneffectiveAccessModifier:
4949 - ' lib/mongo/protocol/message.rb'
5050 - ' lib/mongo/uri/options_mapper.rb'
5151
52- # Offense count: 4
53- # This cop supports unsafe autocorrection (--autocorrect-all).
54- # Configuration parameters: EnforcedStyle.
55- # SupportedStyles: standard_error, runtime_error
56- Lint/InheritException :
57- Exclude :
58- - ' lib/mongo/error/raise_original_error.rb'
59- - ' spec/mongo/server/connection_spec.rb'
60- - ' spec/mongo/socket_spec.rb'
6152
6253# Offense count: 31
6354# Configuration parameters: AllowedParentClasses.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Error
2424 # @note This class must not derive from Error.
2525 #
2626 # @api private
27- class RaiseOriginalError < Exception
27+ class RaiseOriginalError < Exception # rubocop:disable Lint/InheritException
2828 end
2929 end
3030end
Original file line number Diff line number Diff line change 22
33require 'spec_helper'
44
5- class ConnectionSpecTestException < Exception ; end
5+ class ConnectionSpecTestException < StandardError ; end
66
77# fails intermittently in evergreen
88describe Mongo ::Server ::Connection do
Original file line number Diff line number Diff line change 9696
9797 context 'with WaitReadable' do
9898 let ( :exception_class ) do
99- Class . new ( Exception ) do
99+ Class . new ( StandardError ) do
100100 include IO ::WaitReadable
101101 end
102102 end
106106
107107 context 'with WaitWritable' do
108108 let ( :exception_class ) do
109- Class . new ( Exception ) do
109+ Class . new ( StandardError ) do
110110 include IO ::WaitWritable
111111 end
112112 end
You can’t perform that action at this time.
0 commit comments