Preparing report...

Report for github.com/wicoady1/kin-openapi

A+    Excellent!    Found 49 issues across 113 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!


golint61%

Golint is a linter for Go source code.

    • 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/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)
    • Line 64: warning: receiver name value should be consistent with previous receiver name encoding for Encoding (golint)
    • kin-openapi/openapi3/examples.go
    • Line 11: warning: exported type Examples should have comment or be unexported (golint)
    • Line 15: warning: exported method Examples.JSONLookup should have comment or be unexported (golint)
    • Line 37: warning: exported function NewExample should have comment or be unexported (golint)
    • Line 43: warning: exported method Example.MarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported method Example.UnmarshalJSON should have comment or be unexported (golint)
    • Line 51: warning: exported method Example.Validate should have comment or be unexported (golint)
    • Line 51: warning: receiver name value should be consistent with previous receiver name example for Example (golint)
    • kin-openapi/openapi3/paths.go
    • Line 12: warning: exported method Paths.Validate should have comment or be unexported (golint)
    • Line 71: warning: receiver name paths should be consistent with previous receiver name value for Paths (golint)
    • kin-openapi/openapi3/schema.go
    • Line 57: warning: exported type Schemas should have comment or be unexported (golint)
    • Line 61: warning: exported method Schemas.JSONLookup should have comment or be unexported (golint)
    • Line 73: warning: exported type SchemaRefs should have comment or be unexported (golint)
    • Line 77: warning: exported method SchemaRefs.JSONLookup should have comment or be unexported (golint)
    • Line 153: warning: exported function NewSchema should have comment or be unexported (golint)
    • Line 157: warning: exported method Schema.MarshalJSON should have comment or be unexported (golint)
    • Line 161: warning: exported method Schema.UnmarshalJSON should have comment or be unexported (golint)
    • Line 165: warning: exported method Schema.JSONLookup should have comment or be unexported (golint)
    • Line 262: warning: exported method Schema.NewRef should have comment or be unexported (golint)
    • Line 268: warning: exported function NewOneOfSchema should have comment or be unexported (golint)
    • Line 278: warning: exported function NewAnyOfSchema should have comment or be unexported (golint)
    • Line 288: warning: exported function NewAllOfSchema should have comment or be unexported (golint)
    • Line 298: warning: exported function NewBoolSchema should have comment or be unexported (golint)
    • Line 304: warning: exported function NewFloat64Schema should have comment or be unexported (golint)
    • Line 310: warning: exported function NewIntegerSchema should have comment or be unexported (golint)
    • Line 316: warning: exported function NewInt32Schema should have comment or be unexported (golint)
    • Line 323: warning: exported function NewInt64Schema should have comment or be unexported (golint)
    • Line 330: warning: exported function NewStringSchema should have comment or be unexported (golint)
    • Line 336: warning: exported function NewDateTimeSchema should have comment or be unexported (golint)
    • Line 343: warning: exported function NewUUIDSchema should have comment or be unexported (golint)
    • Line 350: warning: exported function NewBytesSchema should have comment or be unexported (golint)
    • Line 357: warning: exported function NewArraySchema should have comment or be unexported (golint)
    • Line 363: warning: exported function NewObjectSchema should have comment or be unexported (golint)
    • Line 370: warning: exported method Schema.WithNullable should have comment or be unexported (golint)
    • Line 375: warning: exported method Schema.WithMin should have comment or be unexported (golint)
    • Line 380: warning: exported method Schema.WithMax should have comment or be unexported (golint)
    • Line 384: warning: exported method Schema.WithExclusiveMin should have comment or be unexported (golint)
    • Line 389: warning: exported method Schema.WithExclusiveMax should have comment or be unexported (golint)
    • Line 394: warning: exported method Schema.WithEnum should have comment or be unexported (golint)
    • Line 399: warning: exported method Schema.WithDefault should have comment or be unexported (golint)
    • Line 404: warning: exported method Schema.WithFormat should have comment or be unexported (golint)
    • Line 409: warning: exported method Schema.WithLength should have comment or be unexported (golint)
    • Line 416: warning: exported method Schema.WithMinLength should have comment or be unexported (golint)
    • Line 422: warning: exported method Schema.WithMaxLength should have comment or be unexported (golint)
    • Line 428: warning: exported method Schema.WithLengthDecodedBase64 should have comment or be unexported (golint)
    • Line 436: warning: exported method Schema.WithMinLengthDecodedBase64 should have comment or be unexported (golint)
    • Line 442: warning: exported method Schema.WithMaxLengthDecodedBase64 should have comment or be unexported (golint)
    • Line 448: warning: exported method Schema.WithPattern should have comment or be unexported (golint)
    • Line 454: warning: exported method Schema.WithItems should have comment or be unexported (golint)
    • Line 461: warning: exported method Schema.WithMinItems should have comment or be unexported (golint)
    • Line 467: warning: exported method Schema.WithMaxItems should have comment or be unexported (golint)
    • Line 473: warning: exported method Schema.WithUniqueItems should have comment or be unexported (golint)
    • Line 478: warning: exported method Schema.WithProperty should have comment or be unexported (golint)
    • Line 484: warning: exported method Schema.WithPropertyRef should have comment or be unexported (golint)
    • Line 494: warning: exported method Schema.WithProperties should have comment or be unexported (golint)
    • Line 505: warning: exported method Schema.WithMinProperties should have comment or be unexported (golint)
    • Line 511: warning: exported method Schema.WithMaxProperties should have comment or be unexported (golint)
    • Line 517: warning: exported method Schema.WithAnyAdditionalProperties should have comment or be unexported (golint)
    • Line 524: warning: exported method Schema.WithAdditionalProperties should have comment or be unexported (golint)
    • Line 535: warning: exported method Schema.IsEmpty should have comment or be unexported (golint)
    • Line 581: warning: exported method Schema.Validate should have comment or be unexported (golint)
    • Line 581: warning: receiver name value should be consistent with previous receiver name schema for Schema (golint)
    • Line 726: warning: exported method Schema.IsMatching should have comment or be unexported (golint)
    • Line 731: warning: exported method Schema.IsMatchingJSONBoolean should have comment or be unexported (golint)
    • Line 736: warning: exported method Schema.IsMatchingJSONNumber should have comment or be unexported (golint)
    • Line 741: warning: exported method Schema.IsMatchingJSONString should have comment or be unexported (golint)
    • Line 746: warning: exported method Schema.IsMatchingJSONArray should have comment or be unexported (golint)
    • Line 751: warning: exported method Schema.IsMatchingJSONObject should have comment or be unexported (golint)
    • Line 756: warning: exported method Schema.VisitJSON should have comment or be unexported (golint)
    • Line 953: warning: exported method Schema.VisitJSONBoolean should have comment or be unexported (golint)
    • Line 965: warning: exported method Schema.VisitJSONNumber should have comment or be unexported (golint)
    • Line 1088: warning: exported method Schema.VisitJSONString should have comment or be unexported (golint)
    • Line 1207: warning: exported method Schema.VisitJSONArray should have comment or be unexported (golint)
    • Line 1303: warning: exported method Schema.VisitJSONObject should have comment or be unexported (golint)
    • Line 1473: warning: exported type SchemaError should have comment or be unexported (golint)
    • Line 1510: warning: exported method SchemaError.JSONPointer 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/validation_handler.go
    • Line 12: warning: exported type AuthenticationFunc should have comment or be unexported (golint)
    • Line 14: warning: exported function NoopAuthenticationFunc should have comment or be unexported (golint)
    • Line 18: warning: exported type ValidationHandler should have comment or be unexported (golint)
    • Line 26: warning: exported method ValidationHandler.Load 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 70: warning: receiver name value should be consistent with previous receiver name mediaType for MediaType (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 37: warning: exported method CallbackRef.JSONLookup should have comment or be unexported (golint)
    • Line 46: warning: exported type ExampleRef should have comment or be unexported (golint)
    • Line 53: warning: exported method ExampleRef.MarshalJSON should have comment or be unexported (golint)
    • Line 57: warning: exported method ExampleRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 61: warning: exported method ExampleRef.Validate should have comment or be unexported (golint)
    • Line 68: warning: exported method ExampleRef.JSONLookup should have comment or be unexported (golint)
    • Line 77: warning: exported type HeaderRef should have comment or be unexported (golint)
    • Line 84: warning: exported method HeaderRef.MarshalJSON should have comment or be unexported (golint)
    • Line 88: warning: exported method HeaderRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 92: warning: exported method HeaderRef.Validate should have comment or be unexported (golint)
    • Line 99: warning: exported method HeaderRef.JSONLookup should have comment or be unexported (golint)
    • Line 108: warning: exported type LinkRef should have comment or be unexported (golint)
    • Line 113: warning: exported method LinkRef.MarshalJSON should have comment or be unexported (golint)
    • Line 117: warning: exported method LinkRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 121: warning: exported method LinkRef.Validate should have comment or be unexported (golint)
    • Line 128: warning: exported type ParameterRef should have comment or be unexported (golint)
    • Line 135: warning: exported method ParameterRef.MarshalJSON should have comment or be unexported (golint)
    • Line 139: warning: exported method ParameterRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 143: 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 181: warning: exported method ResponseRef.JSONLookup should have comment or be unexported (golint)
    • Line 190: warning: exported type RequestBodyRef should have comment or be unexported (golint)
    • Line 197: warning: exported method RequestBodyRef.MarshalJSON should have comment or be unexported (golint)
    • Line 201: warning: exported method RequestBodyRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 205: warning: exported method RequestBodyRef.Validate should have comment or be unexported (golint)
    • Line 212: warning: exported method RequestBodyRef.JSONLookup should have comment or be unexported (golint)
    • Line 221: warning: exported type SchemaRef should have comment or be unexported (golint)
    • Line 228: warning: exported function NewSchemaRef should have comment or be unexported (golint)
    • Line 235: warning: exported method SchemaRef.MarshalJSON should have comment or be unexported (golint)
    • Line 239: warning: exported method SchemaRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 243: warning: exported method SchemaRef.Validate should have comment or be unexported (golint)
    • Line 250: warning: exported method SchemaRef.JSONLookup should have comment or be unexported (golint)
    • Line 259: warning: exported type SecuritySchemeRef should have comment or be unexported (golint)
    • Line 266: warning: exported method SecuritySchemeRef.MarshalJSON should have comment or be unexported (golint)
    • Line 270: warning: exported method SecuritySchemeRef.UnmarshalJSON should have comment or be unexported (golint)
    • Line 274: warning: exported method SecuritySchemeRef.Validate should have comment or be unexported (golint)
    • Line 281: warning: exported method SecuritySchemeRef.JSONLookup 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 18: warning: receiver name value should be consistent with previous receiver name srs for SecurityRequirements (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)
    • Line 41: warning: receiver name value should be consistent with previous receiver name security for SecurityRequirement (golint)
    • kin-openapi/openapi2/openapi2.go
    • Line 31: warning: exported method T.MarshalJSON should have comment or be unexported (golint)
    • Line 35: warning: exported method T.UnmarshalJSON should have comment or be unexported (golint)
    • Line 39: warning: exported method T.AddOperation should have comment or be unexported (golint)
    • Line 53: warning: exported type PathItem should have comment or be unexported (golint)
    • Line 66: warning: exported method PathItem.MarshalJSON should have comment or be unexported (golint)
    • Line 70: warning: exported method PathItem.UnmarshalJSON should have comment or be unexported (golint)
    • Line 74: warning: exported method PathItem.Operations should have comment or be unexported (golint)
    • Line 100: warning: exported method PathItem.GetOperation should have comment or be unexported (golint)
    • Line 121: warning: exported method PathItem.SetOperation should have comment or be unexported (golint)
    • Line 142: warning: exported type Operation should have comment or be unexported (golint)
    • Line 156: warning: exported method Operation.MarshalJSON should have comment or be unexported (golint)
    • Line 160: warning: exported method Operation.UnmarshalJSON should have comment or be unexported (golint)
    • Line 164: warning: exported type Parameters should have comment or be unexported (golint)
    • Line 180: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 208: warning: exported method Parameter.MarshalJSON should have comment or be unexported (golint)
    • Line 212: warning: exported method Parameter.UnmarshalJSON should have comment or be unexported (golint)
    • Line 216: warning: exported type Response should have comment or be unexported (golint)
    • Line 225: warning: exported method Response.MarshalJSON should have comment or be unexported (golint)
    • Line 229: warning: exported method Response.UnmarshalJSON should have comment or be unexported (golint)
    • Line 233: warning: exported type Header should have comment or be unexported (golint)
    • Line 240: warning: exported method Header.MarshalJSON should have comment or be unexported (golint)
    • Line 244: warning: exported method Header.UnmarshalJSON should have comment or be unexported (golint)
    • Line 248: warning: exported type SecurityRequirements should have comment or be unexported (golint)
    • Line 250: warning: exported type SecurityScheme should have comment or be unexported (golint)
    • Line 264: warning: exported method SecurityScheme.MarshalJSON should have comment or be unexported (golint)
    • Line 268: warning: exported method SecurityScheme.UnmarshalJSON 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)
    • Line 123: warning: receiver name value should be consistent with previous receiver name operation for Operation (golint)
    • kin-openapi/openapi3/server.go
    • Line 27: warning: exported method Servers.MatchURL should have comment or be unexported (golint)
    • Line 27: warning: receiver name servers should be consistent with previous receiver name value for Servers (golint)
    • Line 49: warning: exported method Server.MarshalJSON should have comment or be unexported (golint)
    • Line 53: warning: exported method Server.UnmarshalJSON should have comment or be unexported (golint)
    • Line 57: warning: exported method Server.ParameterNames should have comment or be unexported (golint)
    • Line 76: warning: exported method Server.MatchRawURL should have comment or be unexported (golint)
    • Line 128: warning: exported method Server.Validate should have comment or be unexported (golint)
    • Line 128: warning: receiver name value should be consistent with previous receiver name server for Server (golint)
    • Line 158: warning: exported method ServerVariable.MarshalJSON should have comment or be unexported (golint)
    • Line 162: warning: exported method ServerVariable.UnmarshalJSON should have comment or be unexported (golint)
    • Line 166: warning: exported method ServerVariable.Validate should have comment or be unexported (golint)
    • Line 166: warning: receiver name value should be consistent with previous receiver name serverVariable for ServerVariable (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/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/header.go
    • Line 12: warning: exported type Headers should have comment or be unexported (golint)
    • Line 16: warning: exported method Headers.JSONLookup should have comment or be unexported (golint)
    • Line 36: warning: exported method Header.UnmarshalJSON should have comment or be unexported (golint)
    • Line 53: warning: exported method Header.Validate should have comment or be unexported (golint)
    • Line 91: warning: exported method Header.JSONLookup 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 32: warning: receiver name value should be consistent with previous receiver name responses for Responses (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)
    • Line 97: warning: receiver name value should be consistent with previous receiver name response for Response (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 41: warning: exported function NewSecurityScheme should have comment or be unexported (golint)
    • Line 45: warning: exported function NewCSRFSecurityScheme should have comment or be unexported (golint)
    • Line 53: warning: exported function NewOIDCSecurityScheme should have comment or be unexported (golint)
    • Line 60: warning: exported function NewJWTSecurityScheme should have comment or be unexported (golint)
    • Line 68: warning: exported method SecurityScheme.MarshalJSON should have comment or be unexported (golint)
    • Line 72: warning: exported method SecurityScheme.UnmarshalJSON should have comment or be unexported (golint)
    • Line 76: warning: exported method SecurityScheme.WithType should have comment or be unexported (golint)
    • Line 81: warning: exported method SecurityScheme.WithDescription should have comment or be unexported (golint)
    • Line 86: warning: exported method SecurityScheme.WithName should have comment or be unexported (golint)
    • Line 91: warning: exported method SecurityScheme.WithIn should have comment or be unexported (golint)
    • Line 96: warning: exported method SecurityScheme.WithScheme should have comment or be unexported (golint)
    • Line 101: warning: exported method SecurityScheme.WithBearerFormat should have comment or be unexported (golint)
    • Line 106: warning: exported method SecurityScheme.Validate should have comment or be unexported (golint)
    • Line 106: warning: receiver name value should be consistent with previous receiver name ss for SecurityScheme (golint)
    • Line 169: warning: exported type OAuthFlows should have comment or be unexported (golint)
    • Line 186: warning: exported method OAuthFlows.MarshalJSON should have comment or be unexported (golint)
    • Line 190: warning: exported method OAuthFlows.UnmarshalJSON should have comment or be unexported (golint)
    • Line 194: warning: exported method OAuthFlows.Validate should have comment or be unexported (golint)
    • Line 210: warning: exported type OAuthFlow should have comment or be unexported (golint)
    • Line 218: warning: exported method OAuthFlow.MarshalJSON should have comment or be unexported (golint)
    • Line 222: warning: exported method OAuthFlow.UnmarshalJSON should have comment or be unexported (golint)
    • Line 226: warning: exported method OAuthFlow.Validate should have comment or be unexported (golint)
    • kin-openapi/openapi3filter/validation_error_test.go
    • Line 587: warning: don't use underscores in Go names; func runTest_ServeHTTP should be runTestServeHTTP (golint)
    • Line 600: warning: don't use underscores in Go names; func runTest_Middleware should be runTestMiddleware (golint)
    • Line 614: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 656: warning: should not use basic type string as key in context.WithValue (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)
    • Line 107: warning: receiver name value should be consistent with previous receiver name content for Content (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/openapi3.go
    • Line 24: warning: exported method T.MarshalJSON should have comment or be unexported (golint)
    • Line 28: warning: exported method T.UnmarshalJSON should have comment or be unexported (golint)
    • Line 32: warning: exported method T.AddOperation should have comment or be unexported (golint)
    • Line 46: warning: exported method T.AddServer should have comment or be unexported (golint)
    • Line 50: warning: exported method T.Validate should have comment or be unexported (golint)
    • Line 50: warning: receiver name value should be consistent with previous receiver name doc for T (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 value should be consistent with previous receiver name p for Parameters (golint)
    • Line 107: warning: exported const ParameterInPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 113: warning: exported function NewPathParameter should have comment or be unexported (golint)
    • Line 121: warning: exported function NewQueryParameter should have comment or be unexported (golint)
    • Line 128: warning: exported function NewHeaderParameter should have comment or be unexported (golint)
    • Line 135: warning: exported function NewCookieParameter should have comment or be unexported (golint)
    • Line 142: warning: exported method Parameter.WithDescription should have comment or be unexported (golint)
    • Line 147: warning: exported method Parameter.WithRequired should have comment or be unexported (golint)
    • Line 152: warning: exported method Parameter.WithSchema should have comment or be unexported (golint)
    • Line 163: warning: exported method Parameter.MarshalJSON should have comment or be unexported (golint)
    • Line 167: warning: exported method Parameter.UnmarshalJSON should have comment or be unexported (golint)
    • Line 171: warning: exported method Parameter.JSONLookup should have comment or be unexported (golint)
    • Line 171: warning: receiver name value should be consistent with previous receiver name parameter for Parameter (golint)
    • Line 240: warning: exported method Parameter.Validate should have comment or be unexported (golint)
    • Line 240: warning: receiver name value should be consistent with previous receiver name parameter for Parameter (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)
    • Line 119: warning: receiver name value should be consistent with previous receiver name pathItem for PathItem (golint)
    • kin-openapi/openapi2conv/openapi2_conv.go
    • Line 114: warning: exported function ToV3PathItem should have comment or be unexported (golint)
    • Line 142: warning: exported function ToV3Operation should have comment or be unexported (golint)
    • Line 206: warning: exported function ToV3Parameter should have comment or be unexported (golint)
    • Line 402: 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/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/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/tag.go
    • Line 8: warning: exported method Tags.Get should have comment or be unexported (golint)
    • Line 25: warning: exported method Tag.MarshalJSON should have comment or be unexported (golint)
    • Line 29: warning: exported method Tag.UnmarshalJSON should have comment or be unexported (golint)
    • kin-openapi/routers/legacy/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/openapi3gen/openapi3gen.go
    • Line 43: warning: exported type Generator should have comment or be unexported (golint)
    • Line 54: warning: exported function NewGenerator should have comment or be unexported (golint)
    • Line 66: warning: exported method Generator.GenerateSchemaRef should have comment or be unexported (golint)
    • Line 246: warning: exported var RefSchemaRef 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)
    • Line 100: warning: receiver name value should be consistent with previous receiver name requestBody for RequestBody (golint)

gocyclo84%

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/openapi3filter/req_resp_decoder.go
    • Line 903: 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 382: warning: cyclomatic complexity 19 of function (*pathParamDecoder).DecodeObject() is high (> 15) (gocyclo)
    • kin-openapi/openapi3/loader.go
    • Line 672: warning: cyclomatic complexity 26 of function (*Loader).resolveSchemaRef() is high (> 15) (gocyclo)
    • Line 603: warning: cyclomatic complexity 22 of function (*Loader).resolveResponseRef() is high (> 15) (gocyclo)
    • Line 822: warning: cyclomatic complexity 21 of function (*Loader).resolveCallbackRef() is high (> 15) (gocyclo)
    • Line 351: warning: cyclomatic complexity 21 of function drillIntoField() is high (> 15) (gocyclo)
    • Line 182: warning: cyclomatic complexity 21 of function (*Loader).ResolveRefsIn() is high (> 15) (gocyclo)
    • Line 270: warning: cyclomatic complexity 19 of function (*Loader).resolveComponent() is high (> 15) (gocyclo)
    • Line 492: warning: cyclomatic complexity 19 of function (*Loader).resolveParameterRef() is high (> 15) (gocyclo)
    • Line 549: warning: cyclomatic complexity 17 of function (*Loader).resolveRequestBodyRef() is high (> 15) (gocyclo)
    • kin-openapi/openapi2conv/openapi2_conv.go
    • Line 532: warning: cyclomatic complexity 28 of function FromV3() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 22 of function ToV3() is high (> 15) (gocyclo)
    • Line 206: warning: cyclomatic complexity 16 of function ToV3Parameter() is high (> 15) (gocyclo)
    • Line 354: warning: cyclomatic complexity 16 of function onlyOneReqBodyParam() is high (> 15) (gocyclo)
    • kin-openapi/openapi3/schema.go
    • Line 585: warning: cyclomatic complexity 55 of function (*Schema).validate() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 44 of function (Schema).JSONLookup() is high (> 15) (gocyclo)
    • Line 1308: warning: cyclomatic complexity 42 of function (*Schema).visitJSONObject() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 38 of function (*Schema).IsEmpty() is high (> 15) (gocyclo)
    • Line 1093: warning: cyclomatic complexity 34 of function (*Schema).visitJSONString() is high (> 15) (gocyclo)
    • Line 804: warning: cyclomatic complexity 31 of function (*Schema).visitSetOperations() is high (> 15) (gocyclo)
    • Line 970: warning: cyclomatic complexity 28 of function (*Schema).visitJSONNumber() is high (> 15) (gocyclo)
    • Line 1212: warning: cyclomatic complexity 23 of function (*Schema).visitJSONArray() is high (> 15) (gocyclo)
    • kin-openapi/openapi3/parameter.go
    • Line 240: warning: cyclomatic complexity 46 of function (*Parameter).Validate() is high (> 15) (gocyclo)
    • Line 171: warning: cyclomatic complexity 16 of function (Parameter).JSONLookup() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words