lib/ssh_scan/client.rb
Method connect
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def connect()
@error = nil
begin
Timeout::timeout(@timeout) {
Method get_kex_result
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_kex_result(kex_init_raw = @kex_init_raw)
if !@sock
@error = "Socket is no longer valid"
return nil
end
Avoid too many return
statements within this method. Open
Open
return kex_exchange_init.to_hash