mozilla/ssh_scan

View on GitHub
lib/ssh_scan/result.rb

Summary

Maintainability
C
1 day
Test Coverage

Class Result has 54 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Result
    def initialize()
      @version = SSHScan::VERSION
      @keys = nil
      @duplicate_host_key_ips = Set.new()
Severity: Major
Found in lib/ssh_scan/result.rb - About 7 hrs to fix

    Method to_hash has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def to_hash
          hashed_object = {
              "ssh_scan_version" => self.version,
              "ip" => self.ip,
            "hostname" => self.hostname,
    Severity: Minor
    Found in lib/ssh_scan/result.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status