rosa-abf/rosa-build

View on GitHub
lib/ext/posix_spawn.rb

Summary

Maintainability
C
7 hrs
Test Coverage

Showing 3 of 3 total issues

Method read_and_write has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

def read_and_write(input, stdin, stdout, stderr, timeout=nil, max=nil)
max = nil if max && max <= 0
@out, @err = '', ''
offset = 0
 
 
Severity: Minor
Found in lib/ext/posix_spawn.rb - About 4 hrs to fix

Method read_and_write has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def read_and_write(input, stdin, stdout, stderr, timeout=nil, max=nil)
max = nil if max && max <= 0
@out, @err = '', ''
offset = 0
 
 
Severity: Major
Found in lib/ext/posix_spawn.rb - About 2 hrs to fix

    Method read_and_write has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def read_and_write(input, stdin, stdout, stderr, timeout=nil, max=nil)
    Severity: Minor
    Found in lib/ext/posix_spawn.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status