moleculer-go/moleculer

View on GitHub
payload/payload.go

Summary

Maintainability
C
1 day
Test Coverage

RawPayload has 46 methods (exceeds 20 allowed). Consider refactoring.
Open

type RawPayload struct {
    source interface{}
}
Severity: Minor
Found in payload/payload.go - About 6 hrs to fix

    File payload.go has 574 lines of code (exceeds 500 allowed). Consider refactoring.
    Open

    package payload
    
    import (
        "errors"
        "fmt"
    Severity: Minor
    Found in payload/payload.go - About 3 hrs to fix

      Method RawPayload.Get has 7 return statements (exceeds 4 allowed).
      Open

      func (p *RawPayload) Get(s string, defaultValue ...interface{}) moleculer.Payload {
          if _, ok := p.mapGet(s); ok {
              if defaultValue != nil {
                  return p.getKey(s, defaultValue...)
              }
      Severity: Major
      Found in payload/payload.go - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status