Preparing report...

Report for github.com/samschurter/kin-openapi

A+    Excellent!    Found 52 issues across 93 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo81%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • kin-openapi/openapi3/swagger_loader.go
    • Line 600: warning: cyclomatic complexity 25 of function (*SwaggerLoader).resolveSchemaRef() is high (> 15) (gocyclo)
    • Line 801: warning: cyclomatic complexity 21 of function (*SwaggerLoader).resolvePathItemRef() is high (> 15) (gocyclo)
    • Line 524: warning: cyclomatic complexity 21 of function (*SwaggerLoader).resolveResponseRef() is high (> 15) (gocyclo)
    • Line 166: warning: cyclomatic complexity 20 of function (*SwaggerLoader).ResolveRefsIn() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 18 of function (*SwaggerLoader).resolveParameterRef() is high (> 15) (gocyclo)
    • kin-openapi/pathpattern/node.go
    • Line 173: warning: cyclomatic complexity 19 of function (*Node).CreateNode() is high (> 15) (gocyclo)
    • Line 273: warning: cyclomatic complexity 17 of function (*Node).matchRemaining() is high (> 15) (gocyclo)
    • kin-openapi/openapi3/parameter.go
    • Line 239: warning: cyclomatic complexity 46 of function (*Parameter).Validate() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 16 of function (Parameter).JSONLookup() is high (> 15) (gocyclo)
    • kin-openapi/openapi2conv/openapi2_conv.go
    • Line 532: warning: cyclomatic complexity 28 of function FromV3Swagger() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 22 of function ToV3Swagger() is high (> 15) (gocyclo)
    • Line 352: warning: cyclomatic complexity 16 of function onlyOneReqBodyParam() is high (> 15) (gocyclo)
    • kin-openapi/openapi3filter/req_resp_decoder.go
    • Line 902: warning: cyclomatic complexity 22 of function multipartBodyDecoder() is high (> 15) (gocyclo)
    • Line 238: warning: cyclomatic complexity 20 of function decodeValue() is high (> 15) (gocyclo)
    • Line 383: warning: cyclomatic complexity 19 of function (*pathParamDecoder).DecodeObject() is high (> 15) (gocyclo)
    • kin-openapi/openapi3/schema.go
    • Line 582: warning: cyclomatic complexity 53 of function (*Schema).validate() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 44 of function (Schema).JSONLookup() is high (> 15) (gocyclo)
    • Line 1284: warning: cyclomatic complexity 42 of function (*Schema).visitJSONObject() is high (> 15) (gocyclo)
    • Line 532: warning: cyclomatic complexity 38 of function (*Schema).IsEmpty() is high (> 15) (gocyclo)
    • Line 1063: warning: cyclomatic complexity 34 of function (*Schema).visitJSONString() is high (> 15) (gocyclo)
    • Line 940: warning: cyclomatic complexity 28 of function (*Schema).visitJSONNumber() is high (> 15) (gocyclo)
    • Line 796: warning: cyclomatic complexity 25 of function (*Schema).visitSetOperations() is high (> 15) (gocyclo)
    • Line 1188: warning: cyclomatic complexity 23 of function (*Schema).visitJSONArray() is high (> 15) (gocyclo)

golint48%

Golint is a linter for Go source code.

    • kin-openapi/openapi3gen/openapi3gen.go
    • Line 21: warning: exported function NewSchemaRefForValue should have comment or be unexported (golint)
    • Line 30: warning: exported type Generator should have comment or be unexported (golint)
    • Line 39: warning: exported function NewGenerator should have comment or be unexported (golint)
    • Line 46: warning: exported method Generator.GenerateSchemaRef should have comment or be unexported (golint)
    • Line 189: warning: exported var RefSchemaRef should have comment or be unexported (golint)
    • kin-openapi/pathpattern/node.go
    • Line 19: warning: exported var DefaultOptions should have comment or be unexported (golint)
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 56: warning: exported type Node should have comment or be unexported (golint)
    • Line 88: warning: exported type SuffixKind should have comment or be unexported (golint)
    • Line 117: warning: exported function EqualSuffix should have comment or be unexported (golint)
    • Line 134: warning: exported type SuffixList should have comment or be unexported (golint)
    • Line 156: warning: exported method Node.MustAdd should have comment or be unexported (golint)
    • Line 164: warning: exported method Node.Add should have comment or be unexported (golint)
    • Line 173: warning: exported method Node.CreateNode should have comment or be unexported (golint)
    • Line 265: warning: exported method Node.Match should have comment or be unexported (golint)
    • kin-openapi/openapi3/encoding.go
    • Line 21: warning: exported function NewEncoding should have comment or be unexported (golint)
    • Line 25: warning: exported method Encoding.WithHeader should have comment or be unexported (golint)
    • Line 31: warning: exported method Encoding.WithHeaderRef should have comment or be unexported (golint)
    • Line 41: warning: exported method Encoding.MarshalJSON should have comment or be unexported (golint)
    • Line 45: warning: exported method Encoding.UnmarshalJSON should have comment or be unexported (golint)
    • Line 64: warning: exported method Encoding.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/schema.go
    • Line 54: warning: exported type Schemas should have comment or be unexported (golint)
    • Line 58: warning: exported method Schemas.JSONLookup should have comment or be unexported (golint)
    • Line 70: warning: exported type SchemaRefs should have comment or be unexported (golint)
    • Line 74: warning: exported method SchemaRefs.JSONLookup should have comment or be unexported (golint)
    • Line 151: warning: exported function NewSchema should have comment or be unexported (golint)
    • Line 155: warning: exported method Schema.MarshalJSON should have comment or be unexported (golint)
    • Line 159: warning: exported method Schema.UnmarshalJSON should have comment or be unexported (golint)
    • Line 163: warning: exported method Schema.JSONLookup should have comment or be unexported (golint)
    • Line 260: warning: exported method Schema.NewRef should have comment or be unexported (golint)
    • Line 266: warning: exported function NewOneOfSchema should have comment or be unexported (golint)
    • Line 276: warning: exported function NewAnyOfSchema should have comment or be unexported (golint)
    • Line 286: warning: exported function NewAllOfSchema should have comment or be unexported (golint)
    • Line 296: warning: exported function NewBoolSchema should have comment or be unexported (golint)
    • Line 302: warning: exported function NewFloat64Schema should have comment or be unexported (golint)
    • Line 308: warning: exported function NewIntegerSchema should have comment or be unexported (golint)
    • Line 314: warning: exported function NewInt32Schema should have comment or be unexported (golint)
    • Line 321: warning: exported function NewInt64Schema should have comment or be unexported (golint)
    • Line 328: warning: exported function NewStringSchema should have comment or be unexported (golint)
    • Line 334: warning: exported function NewDateTimeSchema should have comment or be unexported (golint)
    • Line 341: warning: exported function NewUUIDSchema should have comment or be unexported (golint)
    • Line 348: warning: exported function NewBytesSchema should have comment or be unexported (golint)
    • Line 355: warning: exported function NewArraySchema should have comment or be unexported (golint)
    • Line 361: warning: exported function NewObjectSchema should have comment or be unexported (golint)
    • Line 368: warning: exported method Schema.WithNullable should have comment or be unexported (golint)
    • Line 373: warning: exported method Schema.WithMin should have comment or be unexported (golint)
    • Line 378: warning: exported method Schema.WithMax should have comment or be unexported (golint)
    • Line 382: warning: exported method Schema.WithExclusiveMin should have comment or be unexported (golint)
    • Line 387: warning: exported method Schema.WithExclusiveMax should have comment or be unexported (golint)
    • Line 392: warning: exported method Schema.WithEnum should have comment or be unexported (golint)
    • Line 397: warning: exported method Schema.WithDefault should have comment or be unexported (golint)
    • Line 402: warning: exported method Schema.WithFormat should have comment or be unexported (golint)
    • Line 407: warning: exported method Schema.WithLength should have comment or be unexported (golint)
    • Line 414: warning: exported method Schema.WithMinLength should have comment or be unexported (golint)
    • Line 420: warning: exported method Schema.WithMaxLength should have comment or be unexported (golint)
    • Line 426: warning: exported method Schema.WithLengthDecodedBase64 should have comment or be unexported (golint)
    • Line 434: warning: exported method Schema.WithMinLengthDecodedBase64 should have comment or be unexported (golint)
    • Line 440: warning: exported method Schema.WithMaxLengthDecodedBase64 should have comment or be unexported (golint)
    • Line 446: warning: exported method Schema.WithPattern should have comment or be unexported (golint)
    • Line 451: warning: exported method Schema.WithItems should have comment or be unexported (golint)
    • Line 458: warning: exported method Schema.WithMinItems should have comment or be unexported (golint)
    • Line 464: warning: exported method Schema.WithMaxItems should have comment or be unexported (golint)
    • Line 470: warning: exported method Schema.WithUniqueItems should have comment or be unexported (golint)
    • Line 475: warning: exported method Schema.WithProperty should have comment or be unexported (golint)
    • Line 481: warning: exported method Schema.WithPropertyRef should have comment or be unexported (golint)
    • Line 491: warning: exported method Schema.WithProperties should have comment or be unexported (golint)
    • Line 502: warning: exported method Schema.WithMinProperties should have comment or be unexported (golint)
    • Line 508: warning: exported method Schema.WithMaxProperties should have comment or be unexported (golint)
    • Line 514: warning: exported method Schema.WithAnyAdditionalProperties should have comment or be unexported (golint)
    • Line 521: warning: exported method Schema.WithAdditionalProperties should have comment or be unexported (golint)
    • Line 532: warning: exported method Schema.IsEmpty should have comment or be unexported (golint)
    • Line 578: warning: exported method Schema.Validate should have comment or be unexported (golint)
    • Line 718: warning: exported method Schema.IsMatching should have comment or be unexported (golint)
    • Line 723: warning: exported method Schema.IsMatchingJSONBoolean should have comment or be unexported (golint)
    • Line 728: warning: exported method Schema.IsMatchingJSONNumber should have comment or be unexported (golint)
    • Line 733: warning: exported method Schema.IsMatchingJSONString should have comment or be unexported (golint)
    • Line 738: warning: exported method Schema.IsMatchingJSONArray should have comment or be unexported (golint)
    • Line 743: warning: exported method Schema.IsMatchingJSONObject should have comment or be unexported (golint)
    • Line 748: warning: exported method Schema.VisitJSON should have comment or be unexported (golint)
    • Line 923: warning: exported method Schema.VisitJSONBoolean should have comment or be unexported (golint)
    • Line 935: warning: exported method Schema.VisitJSONNumber should have comment or be unexported (golint)
    • Line 1058: warning: exported method Schema.VisitJSONString should have comment or be unexported (golint)
    • Line 1183: warning: exported method Schema.VisitJSONArray should have comment or be unexported (golint)
    • Line 1279: warning: exported method Schema.VisitJSONObject should have comment or be unexported (golint)
    • Line 1438: warning: exported type SchemaError should have comment or be unexported (golint)
    • Line 1475: warning: exported method SchemaError.JSONPointer should have comment or be unexported (golint)
    • kin-openapi/openapi3/security_scheme.go
    • Line 12: warning: exported type SecuritySchemes should have comment or be unexported (golint)
    • Line 14: warning: exported method SecuritySchemes.JSONLookup should have comment or be unexported (golint)
    • Line 28: warning: exported type SecurityScheme should have comment or be unexported (golint)
    • Line 40: warning: exported function NewSecurityScheme should have comment or be unexported (golint)
    • Line 44: warning: exported function NewCSRFSecurityScheme should have comment or be unexported (golint)
    • Line 52: warning: exported function NewJWTSecurityScheme should have comment or be unexported (golint)
    • Line 60: warning: exported method SecurityScheme.MarshalJSON should have comment or be unexported (golint)
    • Line 64: warning: exported method SecurityScheme.UnmarshalJSON should have comment or be unexported (golint)
    • Line 68: warning: exported method SecurityScheme.WithType should have comment or be unexported (golint)
    • Line 73: warning: exported method SecurityScheme.WithDescription should have comment or be unexported (golint)
    • Line 78: warning: exported method SecurityScheme.WithName should have comment or be unexported (golint)
    • Line 83: warning: exported method SecurityScheme.WithIn should have comment or be unexported (golint)
    • Line 88: warning: exported method SecurityScheme.WithScheme should have comment or be unexported (golint)
    • Line 93: warning: exported method SecurityScheme.WithBearerFormat should have comment or be unexported (golint)
    • Line 98: warning: exported method SecurityScheme.Validate should have comment or be unexported (golint)
    • Line 159: warning: exported type OAuthFlows should have comment or be unexported (golint)
    • Line 176: warning: exported method OAuthFlows.MarshalJSON should have comment or be unexported (golint)
    • Line 180: warning: exported method OAuthFlows.UnmarshalJSON should have comment or be unexported (golint)
    • Line 184: warning: exported method OAuthFlows.Validate should have comment or be unexported (golint)
    • Line 200: warning: exported type OAuthFlow should have comment or be unexported (golint)
    • Line 208: warning: exported method OAuthFlow.MarshalJSON should have comment or be unexported (golint)
    • Line 212: warning: exported method OAuthFlow.UnmarshalJSON should have comment or be unexported (golint)
    • Line 216: warning: exported method OAuthFlow.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi2conv/openapi2_conv.go
    • Line 115: warning: exported function ToV3PathItem should have comment or be unexported (golint)
    • Line 143: warning: exported function ToV3Operation should have comment or be unexported (golint)
    • Line 207: warning: exported function ToV3Parameter should have comment or be unexported (golint)
    • Line 400: warning: exported function ToV3Response should have comment or be unexported (golint)
    • Line 417: warning: exported function ToV3Schemas should have comment or be unexported (golint)
    • Line 425: warning: exported function ToV3SchemaRef should have comment or be unexported (golint)
    • Line 453: warning: exported function ToV3Ref should have comment or be unexported (golint)
    • Line 462: warning: exported function FromV3Ref should have comment or be unexported (golint)
    • Line 473: warning: exported function ToV3SecurityRequirements should have comment or be unexported (golint)
    • Line 484: warning: exported function ToV3SecurityScheme should have comment or be unexported (golint)
    • Line 691: warning: exported function FromV3Schemas should have comment or be unexported (golint)
    • Line 708: warning: exported function FromV3SchemaRef should have comment or be unexported (golint)
    • Line 781: warning: exported function FromV3SecurityRequirements should have comment or be unexported (golint)
    • Line 792: warning: exported function FromV3PathItem should have comment or be unexported (golint)
    • Line 828: warning: exported function FromV3RequestBodyFormData should have comment or be unexported (golint)
    • Line 878: warning: exported function FromV3Operation should have comment or be unexported (golint)
    • Line 938: warning: exported function FromV3RequestBody should have comment or be unexported (golint)
    • Line 956: warning: exported function FromV3Parameter should have comment or be unexported (golint)
    • Line 997: warning: exported function FromV3Responses should have comment or be unexported (golint)
    • Line 1009: warning: exported function FromV3Response should have comment or be unexported (golint)
    • Line 1035: warning: exported function FromV3SecurityScheme should have comment or be unexported (golint)
    • kin-openapi/openapi3filter/errors.go
    • Line 14: warning: exported var ErrAuthenticationServiceMissing should have comment or be unexported (golint)
    • Line 17: warning: exported type RouteError should have comment or be unexported (golint)
    • Line 26: warning: exported type RequestError should have comment or be unexported (golint)
    • Line 35: warning: exported method RequestError.HTTPStatus should have comment or be unexported (golint)
    • Line 61: warning: exported type ResponseError should have comment or be unexported (golint)
    • Line 79: warning: exported type SecurityRequirementsError should have comment or be unexported (golint)
    • kin-openapi/openapi3/swagger.go
    • Line 11: warning: exported type Swagger should have comment or be unexported (golint)
    • Line 23: warning: exported method Swagger.MarshalJSON should have comment or be unexported (golint)
    • Line 27: warning: exported method Swagger.UnmarshalJSON should have comment or be unexported (golint)
    • Line 31: warning: exported method Swagger.AddOperation should have comment or be unexported (golint)
    • Line 45: warning: exported method Swagger.AddServer should have comment or be unexported (golint)
    • Line 49: warning: exported method Swagger.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi2/openapi2.go
    • Line 19: warning: exported type Swagger should have comment or be unexported (golint)
    • Line 37: warning: exported method Swagger.MarshalJSON should have comment or be unexported (golint)
    • Line 41: warning: exported method Swagger.UnmarshalJSON should have comment or be unexported (golint)
    • Line 45: warning: exported method Swagger.AddOperation should have comment or be unexported (golint)
    • Line 59: warning: exported type PathItem should have comment or be unexported (golint)
    • Line 72: warning: exported method PathItem.MarshalJSON should have comment or be unexported (golint)
    • Line 76: warning: exported method PathItem.UnmarshalJSON should have comment or be unexported (golint)
    • Line 80: warning: exported method PathItem.Operations should have comment or be unexported (golint)
    • Line 106: warning: exported method PathItem.GetOperation should have comment or be unexported (golint)
    • Line 127: warning: exported method PathItem.SetOperation should have comment or be unexported (golint)
    • Line 148: warning: exported type Operation should have comment or be unexported (golint)
    • Line 162: warning: exported method Operation.MarshalJSON should have comment or be unexported (golint)
    • Line 166: warning: exported method Operation.UnmarshalJSON should have comment or be unexported (golint)
    • Line 170: warning: exported type Parameters should have comment or be unexported (golint)
    • Line 186: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 214: warning: exported method Parameter.MarshalJSON should have comment or be unexported (golint)
    • Line 218: warning: exported method Parameter.UnmarshalJSON should have comment or be unexported (golint)
    • Line 222: warning: exported type Response should have comment or be unexported (golint)
    • Line 231: warning: exported method Response.MarshalJSON should have comment or be unexported (golint)
    • Line 235: warning: exported method Response.UnmarshalJSON should have comment or be unexported (golint)
    • Line 239: warning: exported type Header should have comment or be unexported (golint)
    • Line 245: warning: exported type SecurityRequirements should have comment or be unexported (golint)
    • Line 247: warning: exported type SecurityScheme should have comment or be unexported (golint)
    • Line 261: warning: exported method SecurityScheme.MarshalJSON should have comment or be unexported (golint)
    • Line 265: warning: exported method SecurityScheme.UnmarshalJSON should have comment or be unexported (golint)
    • kin-openapi/openapi3/link.go
    • Line 12: warning: exported type Links should have comment or be unexported (golint)
    • Line 14: warning: exported method Links.JSONLookup should have comment or be unexported (golint)
    • Line 39: warning: exported method Link.MarshalJSON should have comment or be unexported (golint)
    • Line 43: warning: exported method Link.UnmarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported method Link.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/path_item.go
    • Line 11: warning: exported type PathItem should have comment or be unexported (golint)
    • Line 29: warning: exported method PathItem.MarshalJSON should have comment or be unexported (golint)
    • Line 33: warning: exported method PathItem.UnmarshalJSON should have comment or be unexported (golint)
    • Line 37: warning: exported method PathItem.Operations should have comment or be unexported (golint)
    • Line 69: warning: exported method PathItem.GetOperation should have comment or be unexported (golint)
    • Line 94: warning: exported method PathItem.SetOperation should have comment or be unexported (golint)
    • Line 119: warning: exported method PathItem.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/security_requirements.go
    • Line 7: warning: exported type SecurityRequirements should have comment or be unexported (golint)
    • Line 9: warning: exported function NewSecurityRequirements should have comment or be unexported (golint)
    • Line 13: warning: exported method SecurityRequirements.With should have comment or be unexported (golint)
    • Line 18: warning: exported method SecurityRequirements.Validate should have comment or be unexported (golint)
    • Line 27: warning: exported type SecurityRequirement should have comment or be unexported (golint)
    • Line 29: warning: exported function NewSecurityRequirement should have comment or be unexported (golint)
    • Line 33: warning: exported method SecurityRequirement.Authenticate should have comment or be unexported (golint)
    • Line 41: warning: exported method SecurityRequirement.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/server.go
    • Line 24: warning: exported method Servers.MatchURL should have comment or be unexported (golint)
    • Line 45: warning: exported method Server.ParameterNames should have comment or be unexported (golint)
    • Line 64: warning: exported method Server.MatchRawURL should have comment or be unexported (golint)
    • Line 116: warning: exported method Server.Validate should have comment or be unexported (golint)
    • Line 135: warning: exported method ServerVariable.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/swagger_loader.go
    • Line 31: warning: exported type SwaggerLoader should have comment or be unexported (golint)
    • Line 39: warning: exported function NewSwaggerLoader should have comment or be unexported (golint)
    • Line 47: warning: exported method SwaggerLoader.LoadSwaggerFromURI should have comment or be unexported (golint)
    • Line 119: warning: exported method SwaggerLoader.LoadSwaggerFromFile should have comment or be unexported (golint)
    • Line 138: warning: exported method SwaggerLoader.LoadSwaggerFromData should have comment or be unexported (golint)
    • Line 166: warning: exported method SwaggerLoader.ResolveRefsIn should have comment or be unexported (golint)
    • kin-openapi/jsoninfo/marshal.go
    • Line 20: warning: exported type ObjectEncoder should have comment or be unexported (golint)
    • Line 24: warning: exported function NewObjectEncoder should have comment or be unexported (golint)
    • Line 56: warning: exported method ObjectEncoder.EncodeStructFieldsAndExtensions should have comment or be unexported (golint)
    • kin-openapi/openapi3filter/router.go
    • Line 15: warning: exported type Route should have comment or be unexported (golint)
    • Line 30: warning: exported method Routers.FindRoute should have comment or be unexported (golint)
    • Line 144: warning: exported method Router.FindRoute should have comment or be unexported (golint)
    • kin-openapi/openapi3/callback.go
    • Line 10: warning: exported type Callbacks should have comment or be unexported (golint)
    • Line 14: warning: exported method Callbacks.JSONLookup should have comment or be unexported (golint)
    • Line 29: warning: exported method Callback.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/response.go
    • Line 18: warning: exported function NewResponses should have comment or be unexported (golint)
    • Line 24: warning: exported method Responses.Default should have comment or be unexported (golint)
    • Line 28: warning: exported method Responses.Get should have comment or be unexported (golint)
    • Line 32: warning: exported method Responses.Validate should have comment or be unexported (golint)
    • Line 44: warning: exported method Responses.JSONLookup should have comment or be unexported (golint)
    • Line 65: warning: exported function NewResponse should have comment or be unexported (golint)
    • Line 69: warning: exported method Response.WithDescription should have comment or be unexported (golint)
    • Line 74: warning: exported method Response.WithContent should have comment or be unexported (golint)
    • Line 79: warning: exported method Response.WithJSONSchema should have comment or be unexported (golint)
    • Line 84: warning: exported method Response.WithJSONSchemaRef should have comment or be unexported (golint)
    • Line 89: warning: exported method Response.MarshalJSON should have comment or be unexported (golint)
    • Line 93: warning: exported method Response.UnmarshalJSON should have comment or be unexported (golint)
    • Line 97: warning: exported method Response.Validate should have comment or be unexported (golint)
    • kin-openapi/jsoninfo/unmarshal.go
    • Line 20: warning: exported type ObjectDecoder should have comment or be unexported (golint)
    • Line 25: warning: exported function NewObjectDecoder should have comment or be unexported (golint)
    • Line 41: warning: exported method ObjectDecoder.DecodeStructFieldsAndExtensions should have comment or be unexported (golint)
    • kin-openapi/openapi3/content.go
    • Line 11: warning: exported function NewContent should have comment or be unexported (golint)
    • Line 15: warning: exported function NewContentWithSchema should have comment or be unexported (golint)
    • Line 28: warning: exported function NewContentWithSchemaRef should have comment or be unexported (golint)
    • Line 41: warning: exported function NewContentWithJSONSchema should have comment or be unexported (golint)
    • Line 46: warning: exported function NewContentWithJSONSchemaRef should have comment or be unexported (golint)
    • Line 52: warning: exported function NewContentWithFormDataSchema should have comment or be unexported (golint)
    • Line 58: warning: exported function NewContentWithFormDataSchemaRef should have comment or be unexported (golint)
    • Line 64: warning: exported method Content.Get should have comment or be unexported (golint)
    • Line 107: warning: exported method Content.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/discriminator.go
    • Line 16: warning: exported method Discriminator.MarshalJSON should have comment or be unexported (golint)
    • Line 20: warning: exported method Discriminator.UnmarshalJSON should have comment or be unexported (golint)
    • Line 24: warning: exported method Discriminator.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/parameter.go
    • Line 13: warning: exported type ParametersMap should have comment or be unexported (golint)
    • Line 17: warning: exported method ParametersMap.JSONLookup should have comment or be unexported (golint)
    • Line 34: warning: exported method Parameters.JSONLookup should have comment or be unexported (golint)
    • Line 52: warning: exported function NewParameters should have comment or be unexported (golint)
    • Line 56: warning: exported method Parameters.GetByInAndName should have comment or be unexported (golint)
    • Line 56: warning: receiver name parameters should be consistent with previous receiver name p for Parameters (golint)
    • Line 67: warning: exported method Parameters.Validate should have comment or be unexported (golint)
    • Line 67: warning: receiver name parameters should be consistent with previous receiver name p for Parameters (golint)
    • Line 106: warning: exported const ParameterInPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 112: warning: exported function NewPathParameter should have comment or be unexported (golint)
    • Line 120: warning: exported function NewQueryParameter should have comment or be unexported (golint)
    • Line 127: warning: exported function NewHeaderParameter should have comment or be unexported (golint)
    • Line 134: warning: exported function NewCookieParameter should have comment or be unexported (golint)
    • Line 141: warning: exported method Parameter.WithDescription should have comment or be unexported (golint)
    • Line 146: warning: exported method Parameter.WithRequired should have comment or be unexported (golint)
    • Line 151: warning: exported method Parameter.WithSchema should have comment or be unexported (golint)
    • Line 162: warning: exported method Parameter.MarshalJSON should have comment or be unexported (golint)
    • Line 166: warning: exported method Parameter.UnmarshalJSON should have comment or be unexported (golint)
    • Line 170: warning: exported method Parameter.JSONLookup should have comment or be unexported (golint)
    • Line 239: warning: exported method Parameter.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/request_body.go
    • Line 11: warning: exported type RequestBodies should have comment or be unexported (golint)
    • Line 15: warning: exported method RequestBodies.JSONLookup should have comment or be unexported (golint)
    • Line 35: warning: exported function NewRequestBody should have comment or be unexported (golint)
    • Line 39: warning: exported method RequestBody.WithDescription should have comment or be unexported (golint)
    • Line 44: warning: exported method RequestBody.WithRequired should have comment or be unexported (golint)
    • Line 49: warning: exported method RequestBody.WithContent should have comment or be unexported (golint)
    • Line 54: warning: exported method RequestBody.WithSchemaRef should have comment or be unexported (golint)
    • Line 59: warning: exported method RequestBody.WithSchema should have comment or be unexported (golint)
    • Line 64: warning: exported method RequestBody.WithJSONSchemaRef should have comment or be unexported (golint)
    • Line 69: warning: exported method RequestBody.WithJSONSchema should have comment or be unexported (golint)
    • Line 74: warning: exported method RequestBody.WithFormDataSchemaRef should have comment or be unexported (golint)
    • Line 79: warning: exported method RequestBody.WithFormDataSchema should have comment or be unexported (golint)
    • Line 84: warning: exported method RequestBody.GetMediaType should have comment or be unexported (golint)
    • Line 92: warning: exported method RequestBody.MarshalJSON should have comment or be unexported (golint)
    • Line 96: warning: exported method RequestBody.UnmarshalJSON should have comment or be unexported (golint)
    • Line 100: warning: exported method RequestBody.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/examples.go
    • Line 10: warning: exported type Examples should have comment or be unexported (golint)
    • Line 14: warning: exported method Examples.JSONLookup should have comment or be unexported (golint)
    • Line 36: warning: exported function NewExample should have comment or be unexported (golint)
    • Line 42: warning: exported method Example.MarshalJSON should have comment or be unexported (golint)
    • Line 46: warning: exported method Example.UnmarshalJSON should have comment or be unexported (golint)
    • kin-openapi/openapi3/header.go
    • Line 11: warning: exported type Headers should have comment or be unexported (golint)
    • Line 15: warning: exported method Headers.JSONLookup should have comment or be unexported (golint)
    • Line 27: warning: exported type Header should have comment or be unexported (golint)
    • Line 42: warning: exported method Header.UnmarshalJSON should have comment or be unexported (golint)
    • Line 46: warning: exported method Header.Validate should have comment or be unexported (golint)
    • Line 55: warning: exported method Header.JSONLookup should have comment or be unexported (golint)
    • kin-openapi/openapi3/info.go
    • Line 21: warning: exported method Info.MarshalJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method Info.UnmarshalJSON should have comment or be unexported (golint)
    • Line 29: warning: exported method Info.Validate should have comment or be unexported (golint)
    • Line 61: warning: exported method Contact.MarshalJSON should have comment or be unexported (golint)
    • Line 65: warning: exported method Contact.UnmarshalJSON should have comment or be unexported (golint)
    • Line 69: warning: exported method Contact.Validate should have comment or be unexported (golint)
    • Line 80: warning: exported method License.MarshalJSON should have comment or be unexported (golint)
    • Line 84: warning: exported method License.UnmarshalJSON should have comment or be unexported (golint)
    • Line 88: warning: exported method License.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3/operation.go
    • Line 53: warning: exported function NewOperation should have comment or be unexported (golint)
    • Line 57: warning: exported method Operation.MarshalJSON should have comment or be unexported (golint)
    • Line 61: warning: exported method Operation.UnmarshalJSON should have comment or be unexported (golint)
    • Line 65: warning: exported method Operation.JSONLookup should have comment or be unexported (golint)
    • Line 102: warning: exported method Operation.AddParameter should have comment or be unexported (golint)
    • Line 108: warning: exported method Operation.AddResponse should have comment or be unexported (golint)
    • Line 123: warning: exported method Operation.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3filter/validation_error_test.go
    • Line 586: warning: don't use underscores in Go names; func runTest_ServeHTTP should be runTestServeHTTP (golint)
    • Line 599: warning: don't use underscores in Go names; func runTest_Middleware should be runTestMiddleware (golint)
    • Line 613: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 655: warning: should not use basic type string as key in context.WithValue (golint)
    • kin-openapi/openapi3filter/validation_handler.go
    • Line 8: warning: exported type AuthenticationFunc should have comment or be unexported (golint)
    • Line 10: warning: exported function NoopAuthenticationFunc should have comment or be unexported (golint)
    • Line 14: warning: exported type ValidationHandler should have comment or be unexported (golint)
    • Line 22: warning: exported method ValidationHandler.Load should have comment or be unexported (golint)
    • kin-openapi/openapi3/components.go
    • Line 25: warning: exported function NewComponents should have comment or be unexported (golint)
    • Line 29: warning: exported method Components.MarshalJSON should have comment or be unexported (golint)
    • Line 33: warning: exported method Components.UnmarshalJSON should have comment or be unexported (golint)
    • Line 37: warning: exported method Components.Validate should have comment or be unexported (golint)
    • Line 102: warning: exported function ValidateIdentifier should have comment or be unexported (golint)
    • kin-openapi/openapi3/media_type.go
    • Line 22: warning: exported function NewMediaType should have comment or be unexported (golint)
    • Line 26: warning: exported method MediaType.WithSchema should have comment or be unexported (golint)
    • Line 35: warning: exported method MediaType.WithSchemaRef should have comment or be unexported (golint)
    • Line 40: warning: exported method MediaType.WithExample should have comment or be unexported (golint)
    • Line 52: warning: exported method MediaType.WithEncoding should have comment or be unexported (golint)
    • Line 62: warning: exported method MediaType.MarshalJSON should have comment or be unexported (golint)
    • Line 66: warning: exported method MediaType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 70: warning: exported method MediaType.Validate should have comment or be unexported (golint)
    • Line 82: warning: exported method MediaType.JSONLookup should have comment or be unexported (golint)
    • kin-openapi/openapi3/refs.go
    • Line 15: warning: exported type CallbackRef should have comment or be unexported (golint)
    • Line 22: warning: exported method CallbackRef.MarshalJSON should have comment or be unexported (golint)
    • Line 26: warning: exported method CallbackRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 30: warning: exported method CallbackRef.Validate should have comment or be unexported (golint)
    • Line 38: warning: exported method CallbackRef.JSONLookup should have comment or be unexported (golint)
    • Line 47: warning: exported type ExampleRef should have comment or be unexported (golint)
    • Line 54: warning: exported method ExampleRef.MarshalJSON should have comment or be unexported (golint)
    • Line 58: warning: exported method ExampleRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 62: warning: exported method ExampleRef.Validate should have comment or be unexported (golint)
    • Line 66: warning: exported method ExampleRef.JSONLookup should have comment or be unexported (golint)
    • Line 75: warning: exported type HeaderRef should have comment or be unexported (golint)
    • Line 82: warning: exported method HeaderRef.MarshalJSON should have comment or be unexported (golint)
    • Line 86: warning: exported method HeaderRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 90: warning: exported method HeaderRef.Validate should have comment or be unexported (golint)
    • Line 97: warning: exported method HeaderRef.JSONLookup should have comment or be unexported (golint)
    • Line 106: warning: exported type LinkRef should have comment or be unexported (golint)
    • Line 111: warning: exported method LinkRef.MarshalJSON should have comment or be unexported (golint)
    • Line 115: warning: exported method LinkRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 119: warning: exported method LinkRef.Validate should have comment or be unexported (golint)
    • Line 127: warning: exported type ParameterRef should have comment or be unexported (golint)
    • Line 134: warning: exported method ParameterRef.MarshalJSON should have comment or be unexported (golint)
    • Line 138: warning: exported method ParameterRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 142: warning: exported method ParameterRef.Validate should have comment or be unexported (golint)
    • Line 150: warning: exported method ParameterRef.JSONLookup should have comment or be unexported (golint)
    • Line 159: warning: exported type ResponseRef should have comment or be unexported (golint)
    • Line 166: warning: exported method ResponseRef.MarshalJSON should have comment or be unexported (golint)
    • Line 170: warning: exported method ResponseRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 174: warning: exported method ResponseRef.Validate should have comment or be unexported (golint)
    • Line 182: warning: exported method ResponseRef.JSONLookup should have comment or be unexported (golint)
    • Line 191: warning: exported type RequestBodyRef should have comment or be unexported (golint)
    • Line 198: warning: exported method RequestBodyRef.MarshalJSON should have comment or be unexported (golint)
    • Line 202: warning: exported method RequestBodyRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 206: warning: exported method RequestBodyRef.Validate should have comment or be unexported (golint)
    • Line 214: warning: exported method RequestBodyRef.JSONLookup should have comment or be unexported (golint)
    • Line 223: warning: exported type SchemaRef should have comment or be unexported (golint)
    • Line 230: warning: exported function NewSchemaRef should have comment or be unexported (golint)
    • Line 237: warning: exported method SchemaRef.MarshalJSON should have comment or be unexported (golint)
    • Line 241: warning: exported method SchemaRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 245: warning: exported method SchemaRef.Validate should have comment or be unexported (golint)
    • Line 253: warning: exported method SchemaRef.JSONLookup should have comment or be unexported (golint)
    • Line 262: warning: exported type SecuritySchemeRef should have comment or be unexported (golint)
    • Line 269: warning: exported method SecuritySchemeRef.MarshalJSON should have comment or be unexported (golint)
    • Line 273: warning: exported method SecuritySchemeRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 277: warning: exported method SecuritySchemeRef.Validate should have comment or be unexported (golint)
    • Line 285: warning: exported method SecuritySchemeRef.JSONLookup should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words