grokify/mogo

View on GitHub
encoding/jsonpointer/parser.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func ParseJSONPointer(s string) (JSONPointer, error) {
    anchorSlash := "#/"
    slash := "/"
    ptr := JSONPointer{String: s}
    if strings.Index(s, anchorSlash) == 0 {
Severity: Major
Found in encoding/jsonpointer/parser.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status