grokify/mogo

View on GitHub
encoding/jsonutil/tolerant_reader_types.go

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

    } else if bl, ok := a.(bool); ok {
        if bl {
            *s = String("true")
        } else {
            *s = String("false")
Severity: Major
Found in encoding/jsonutil/tolerant_reader_types.go - About 45 mins to fix

    Method String.UnmarshalJSON has 5 return statements (exceeds 4 allowed).
    Open

    func (s *String) UnmarshalJSON(data []byte) error {
        var a any
    
        if err := json.Unmarshal(data, &a); err != nil {
            panic(err)
    Severity: Major
    Found in encoding/jsonutil/tolerant_reader_types.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status