status-im/status-go

View on GitHub
protocol/messenger_contacts.go

Summary

Maintainability
C
1 day
Test Coverage
F
43%

File messenger_contacts.go has 1065 lines of code (exceeds 900 allowed). Consider refactoring.
Open

package protocol

import (
    "context"
    "crypto/ecdsa"
Severity: Major
Found in protocol/messenger_contacts.go - About 5 hrs to fix

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

    func (m *Messenger) prepareMutualStateUpdateMessage(contactID string, updateType MutualStateUpdateType, clock uint64, timestamp uint64, outgoing bool) (*common.Message, error) {
        var text string
        var to string
        var from string
        var contentType protobuf.ChatMessage_ContentType
    Severity: Minor
    Found in protocol/messenger_contacts.go - About 5 hrs to fix

      There are no issues that match your filters.

      Category
      Status