BigKeeper/big-keeper

View on GitHub
lib/big_keeper/util/verify_operator.rb

Summary

Maintainability
A
25 mins
Test Coverage
module BigKeeper
# Operator for got
class VerifyOperator
Method `already_in_process?` has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
def self.already_in_process?
already_in_process = false
Open3.popen3('ps aux | grep \<big\> -c') do |stdin , stdout , stderr, wait_thr|
while line = stdout.gets
if line.rstrip.to_i > 2
already_in_process = true
break
end
end
end
already_in_process
end
end
end