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 568 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 5 return statements (exceeds 4 allowed).
      Open

      func (p *RawPayload) Get(s string, defaultValue ...interface{}) moleculer.Payload {
          //check if is a path of key
          if isPath(s) {
              if defaultValue != nil {
                  return p.getPath(s, defaultValue...)
      Severity: Major
      Found in payload/payload.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status