status-im/status-go

View on GitHub
protocol/messenger_handlers.go

Summary

Maintainability
D
2 days
Test Coverage
D
69%

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

func (m *Messenger) dispatchToHandler(messageState *ReceivedMessageState, protoBytes []byte, msg *v1protocol.StatusMessage, filter transport.Filter, fromArchive bool) error {
    switch msg.ApplicationLayer.Type {
    
           case protobuf.ApplicationMetadataMessage_CHAT_MESSAGE:
        return m.handleChatMessageProtobuf(messageState, protoBytes, msg, filter, fromArchive)
Severity: Major
Found in protocol/messenger_handlers.go - About 1 day to fix

    File messenger_handlers.go has 1120 lines of code (exceeds 900 allowed). Consider refactoring.
    Open

    //nolint
    // Code generated by generate_handlers.go. DO NOT EDIT.
    // source: generate_handlers.go
    
    package protocol
    Severity: Major
    Found in protocol/messenger_handlers.go - About 7 hrs to fix

      There are no issues that match your filters.

      Category
      Status