omissis/go-jsonschema

View on GitHub
pkg/schemas/loaders.go

Summary

Maintainability
A
1 hr
Test Coverage

Method HTTPLoader.Load has 6 return statements (exceeds 4 allowed).
Open

func (l *HTTPLoader) Load(uri, parentURI string) (*Schema, error) {
    u, err := url.Parse(uri)
    if err != nil {
        return nil, fmt.Errorf("failed to parse url: %w", err)
    }
Severity: Major
Found in pkg/schemas/loaders.go - About 40 mins to fix

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

    func QualifiedFileName(fileName, parentFileName string, resolveExtensions []string) (string, error) {
        r, err := GetRefType(fileName)
        if err != nil {
            return "", err
        }
    Severity: Major
    Found in pkg/schemas/loaders.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status