omissis/go-jsonschema

View on GitHub
pkg/codegen/utils.go

Summary

Maintainability
B
4 hrs
Test Coverage

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

func PrimitiveTypeFromJSONSchemaType(
    jsType,
    format string,
    pointer,
    minIntSize bool,
Severity: Major
Found in pkg/codegen/utils.go - About 3 hrs to fix

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

    func PrimitiveTypeFromJSONSchemaType(
        jsType,
        format string,
        pointer,
        minIntSize bool,
    Severity: Major
    Found in pkg/codegen/utils.go - About 55 mins to fix

      Function PrimitiveTypeFromJSONSchemaType has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          jsType,
          format string,
          pointer,
          minIntSize bool,
          minimum **float64,
      Severity: Minor
      Found in pkg/codegen/utils.go - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status