waku-org/go-waku

View on GitHub
waku/v2/protocol/content_topic.go

Summary

Maintainability
A
1 hr
Test Coverage
A
91%

Function StringToContentTopic has 6 return statements (exceeds 4 allowed).
Open

func StringToContentTopic(s string) (ContentTopic, error) {
    p := strings.Split(s, "/")
    switch len(p) {
    case 5:
        if len(p[1]) == 0 || len(p[2]) == 0 || len(p[3]) == 0 || len(p[4]) == 0 {
Severity: Major
Found in waku/v2/protocol/content_topic.go - About 40 mins to fix

    Function NewContentTopic has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func NewContentTopic(applicationName string, applicationVersion string,
        contentTopicName string, encoding string, opts ...ContentTopicOption) (ContentTopic, error) {
    Severity: Minor
    Found in waku/v2/protocol/content_topic.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status