mozilla/ssh_scan

View on GitHub
lib/ssh_scan/client.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method connect has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def connect()
      @error = nil

      begin
        Timeout::timeout(@timeout) {
Severity: Minor
Found in lib/ssh_scan/client.rb - About 1 hr to fix

    Method get_kex_result has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def get_kex_result(kex_init_raw = @kex_init_raw)
          if !@sock
            @error = "Socket is no longer valid"
            return nil
          end
    Severity: Minor
    Found in lib/ssh_scan/client.rb - About 1 hr to fix

      Avoid too many return statements within this method.
      Open

            return kex_exchange_init.to_hash
      Severity: Major
      Found in lib/ssh_scan/client.rb - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status