rapid7/metasploit-framework

View on GitHub
lib/rex/proto/mms/client.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method send_mms_to_phones has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def send_mms_to_phones(phone_numbers, subject, message, attachment_path=nil, ctype=nil)
          carrier     = Rex::Proto::Mms::Model::GATEWAYS[self.carrier]
          recipients  = phone_numbers.collect { |p| "#{p}@#{carrier}" }
          address     = self.smtp_server.address
          port        = self.smtp_server.port
Severity: Minor
Found in lib/rex/proto/mms/client.rb - About 1 hr to fix

    Method send_mms_to_phones has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            def send_mms_to_phones(phone_numbers, subject, message, attachment_path=nil, ctype=nil)
    Severity: Minor
    Found in lib/rex/proto/mms/client.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status