maestrano/mno-enterprise

View on GitHub
api/lib/mno_enterprise/intercom_events_listener.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method info has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def info(key, current_user_id, description, subject_type, subject_id, metadata)
      u = User.find(current_user_id)
      data = {created_at: Time.now.to_i, email: u.email, user_id: u.id, event_name: key.tr('_', '-')}
      case key
        when 'user_update', 'organization_update'
Severity: Minor
Found in api/lib/mno_enterprise/intercom_events_listener.rb - About 1 hr to fix

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

        def info(key, current_user_id, description, subject_type, subject_id, metadata)
    Severity: Minor
    Found in api/lib/mno_enterprise/intercom_events_listener.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status