status-im/status-go

View on GitHub
protocol/messenger_contact_verification.go

Summary

Maintainability
B
4 hrs
Test Coverage
F
0%

Messenger has 24 methods (exceeds 21 allowed). Consider refactoring.
Open

func (m *Messenger) SendContactVerificationRequest(ctx context.Context, contactID string, challenge string) (*MessengerResponse, error) {
    if len(challenge) < minContactVerificationMessageLen || len(challenge) > maxContactVerificationMessageLen {
        return nil, errors.New("invalid verification request challenge length")
    }

Severity: Minor
Found in protocol/messenger_contact_verification.go - About 2 hrs to fix

    File messenger_contact_verification.go has 916 lines of code (exceeds 900 allowed). Consider refactoring.
    Open

    package protocol
    
    import (
        "context"
        "strings"
    Severity: Major
    Found in protocol/messenger_contact_verification.go - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status