ronin-rb/ronin-db-activerecord

View on GitHub
lib/ronin/db/note.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

        unless (mac_address || ip_address || host_name || port || service || open_port || cert || url || user_name || email_address || password || credential || advisory || phone_number || street_address || person || organization)
          errors.add(:base, 'note must be associated with a MACAddress, IPAddress, HostName, Port, Service, OpenPort, Cert, URL, UserName, EmailAddress, Password, Credential, Advisory, PhoneNumber, StreetAddress, Person, or Organization')
        end
Severity: Critical
Found in lib/ronin/db/note.rb - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status