status-im/status-go

View on GitHub
protocol/messenger_mention.go

Summary

Maintainability
C
7 hrs
Test Coverage
F
11%

File messenger_mention.go has 1102 lines of code (exceeds 900 allowed). Consider refactoring.
Open

package protocol

// this is a reimplementation of the mention feature in status-react
// reference implementation: https://github.com/status-im/status-react/blob/972347963498fc4a2bb8f85541e79ed0541698da/src/status_im/chat/models/mentions.cljs#L1
import (
Severity: Major
Found in protocol/messenger_mention.go - About 6 hrs to fix

    Function applyStyleTag has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    func applyStyleTag(data *textMeta, idx int, pos int, c string, len int, start bool, end bool) int {
    Severity: Major
    Found in protocol/messenger_mention.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status