mongodb/mongo-ruby-driver

View on GitHub
lib/mongo/monitoring/event/command_failed.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method initialize has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

        def initialize(command_name, database_name, address,
          request_id, operation_id, message, failure, duration,
          started_event:, server_connection_id: nil, service_id: nil
Severity: Major
Found in lib/mongo/monitoring/event/command_failed.rb - About 1 hr to fix

    Method generate has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            def self.generate(address, operation_id, payload, message,
              failure, duration, started_event:, server_connection_id: nil,
              service_id: nil
    Severity: Minor
    Found in lib/mongo/monitoring/event/command_failed.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status