42wim/matterbridge

View on GitHub
bridge/rocketchat/rocketchat.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Brocketchat.Send has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (b *Brocketchat) Send(msg config.Message) (string, error) {
    // strip the # if people has set this
    msg.Channel = strings.TrimPrefix(msg.Channel, "#")
    channel := &models.Channel{ID: b.getChannelID(msg.Channel), Name: msg.Channel}

Severity: Minor
Found in bridge/rocketchat/rocketchat.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status