Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 43eeecb

Browse files
committed
Disable rubocop Metrics/AbcSize for in_sub_process method
1 parent 6b27ac2 commit 43eeecb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rspec/support/spec/in_sub_process.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ module InSubProcess
77

88
# Useful as a way to isolate a global change to a subprocess.
99

10-
# rubocop:disable MethodLength
11-
def in_sub_process(prevent_warnings=true)
10+
def in_sub_process(prevent_warnings=true) # rubocop:disable MethodLength, Metrics/AbcSize
1211
exception_reader, exception_writer = IO.pipe
1312
result_reader, result_writer = IO.pipe
1413

@@ -46,7 +45,6 @@ def in_sub_process(prevent_warnings=true)
4645
result_reader.close
4746
result
4847
end
49-
# rubocop:enable MethodLength
5048
alias :in_sub_process_if_possible :in_sub_process
5149

5250
def marshal_dump_with_unmarshable_object_handling(object)

0 commit comments

Comments
 (0)