1set/starlet

View on GitHub
dataconv/share.go

Summary

Maintainability
A
1 hr
Test Coverage

Method SharedDict.LoadJSON has 5 return statements (exceeds 4 allowed).
Open

func (s *SharedDict) LoadJSON(jsonStr string) error {
    // check the dict itself
    if s == nil {
        return fmt.Errorf("nil shared dict")
    }
Severity: Major
Found in dataconv/share.go - About 35 mins to fix

    Function sharedDictFromJSON has 5 return statements (exceeds 4 allowed).
    Open

    func sharedDictFromJSON(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
        // check the arguments
        var s tps.StringOrBytes
        if err := starlark.UnpackArgs(b.Name(), args, kwargs, "x", &s); err != nil {
            return nil, err
    Severity: Major
    Found in dataconv/share.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status