protocol/messenger_mention.go
File messenger_mention.go
has 1102 lines of code (exceeds 900 allowed). Consider refactoring. Open
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 (
Function applyStyleTag
has 7 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
func applyStyleTag(data *textMeta, idx int, pos int, c string, len int, start bool, end bool) int {