omissis/go-jsonschema

View on GitHub
pkg/codegen/utils.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function PrimitiveTypeFromJSONSchemaType has 91 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func PrimitiveTypeFromJSONSchemaType(jsType, format string, pointer bool) (Type, error) {
    var t Type

    switch jsType {
    case schemas.TypeNameString:
Severity: Major
Found in pkg/codegen/utils.go - About 2 hrs to fix

    Function PrimitiveTypeFromJSONSchemaType has 9 return statements (exceeds 4 allowed).
    Open

    func PrimitiveTypeFromJSONSchemaType(jsType, format string, pointer bool) (Type, error) {
        var t Type
    
        switch jsType {
        case schemas.TypeNameString:
    Severity: Major
    Found in pkg/codegen/utils.go - About 55 mins to fix

      There are no issues that match your filters.

      Category
      Status