Fs02/grimoire

View on GitHub
params/json.go

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method JSON.convert has 54 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (json *JSON) convert(value gjson.Result, typ reflect.Type) (interface{}, bool) {
    if value.Type == gjson.Null {
        return nil, true
    }

Severity: Minor
Found in params/json.go - About 1 hr to fix

    Method JSON.convert has 7 return statements (exceeds 4 allowed).
    Open

    func (json *JSON) convert(value gjson.Result, typ reflect.Type) (interface{}, bool) {
        if value.Type == gjson.Null {
            return nil, true
        }
    
    
    Severity: Major
    Found in params/json.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status