Preparing report...

Report for github.com/go-liewhite/httptransport

(v1.20.2)

A+    Excellent!    Found 42 issues across 103 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!


gocyclo91%

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.

    • openapi/generator/operator_scanner.go
    • Line 244: warning: cyclomatic complexity 23 of function (*OperatorScanner).getResponse() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 19 of function (*Operator).BindOperation() is high (> 15) (gocyclo)
    • Line 127: warning: cyclomatic complexity 18 of function (*OperatorScanner).scanRouteMeta() is high (> 15) (gocyclo)
    • transformers/multipart_transformer.go
    • Line 61: warning: cyclomatic complexity 20 of function (*MultipartTransformer).EncodeToWriter() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 16 of function (*MultipartTransformer).DecodeFromReader() is high (> 15) (gocyclo)
    • request_transformer.go
    • Line 174: warning: cyclomatic complexity 26 of function (*RequestTransformer).NewRequestWithContext() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 21 of function (*RequestTransformer).DecodeFrom() is high (> 15) (gocyclo)

golint59%

Golint is a linter for Go source code.

    • openapi/generator/utils.go
    • Line 16: warning: exported const XID should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported const XEnumOptions should be of the form "XEnumOptions ..." (golint)
    • client/roundtrippers/log_round_tripper.go
    • Line 12: warning: exported function NewLogRoundTripper should have comment or be unexported (golint)
    • Line 20: warning: exported type LogRoundTripper should have comment or be unexported (golint)
    • Line 24: warning: exported method LogRoundTripper.RoundTrip should have comment or be unexported (golint)
    • http_transport.go
    • Line 24: warning: exported function MiddlewareChain should have comment or be unexported (golint)
    • Line 34: warning: exported type HttpMiddleware should have comment or be unexported (golint)
    • Line 36: warning: exported function NewHttpTransport should have comment or be unexported (golint)
    • Line 42: warning: exported type HttpTransport should have comment or be unexported (golint)
    • Line 65: warning: exported type ServerModifier should have comment or be unexported (golint)
    • Line 67: warning: exported method HttpTransport.SetDefaults should have comment or be unexported (golint)
    • Line 95: warning: exported method HttpTransport.Serve should have comment or be unexported (golint)
    • Line 99: warning: exported method HttpTransport.ServeContext should have comment or be unexported (golint)
    • transformers/utils.go
    • Line 22: warning: exported function PtrTo should have comment or be unexported (golint)
    • Line 32: warning: exported function IsBytes should have comment or be unexported (golint)
    • Line 45: warning: exported function MIMEHeader should have comment or be unexported (golint)
    • Line 57: warning: exported function NamedStructFieldValueRange should have comment or be unexported (golint)
    • Line 92: warning: exported function TagValueAndFlagsByTagString should have comment or be unexported (golint)
    • openapi/generator/openapi_generator.go
    • Line 21: warning: exported function NewOpenAPIGenerator should have comment or be unexported (golint)
    • Line 29: warning: exported type OpenAPIGenerator should have comment or be unexported (golint)
    • Line 57: warning: exported method OpenAPIGenerator.Scan should have comment or be unexported (golint)
    • Line 122: warning: exported method OpenAPIGenerator.OperationByOperatorTypes should have comment or be unexported (golint)
    • Line 134: warning: exported method OpenAPIGenerator.Output should have comment or be unexported (golint)
    • transformers/form_transformer.go
    • Line 22: warning: exported type FormTransformer should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method FormTransformer.Names should be of the form "Names ..." (golint)
    • Line 46: warning: exported method FormTransformer.NamedByTag should have comment or be unexported (golint)
    • Line 54: warning: exported method FormTransformer.New should have comment or be unexported (golint)
    • Line 71: warning: exported method FormTransformer.EncodeToWriter should have comment or be unexported (golint)
    • Line 112: warning: exported method FormTransformer.DecodeFromReader should have comment or be unexported (golint)
    • openapi/generator/operator_scanner.go
    • Line 28: warning: exported function NewOperatorScanner should have comment or be unexported (golint)
    • Line 36: warning: exported type OperatorScanner should have comment or be unexported (golint)
    • Line 43: warning: exported method OperatorScanner.Operator should have comment or be unexported (golint)
    • Line 378: warning: exported type Operator should have comment or be unexported (golint)
    • Line 395: warning: exported method Operator.AddNonBodyParameter should have comment or be unexported (golint)
    • Line 402: warning: exported method Operator.SetRequestBody should have comment or be unexported (golint)
    • Line 406: warning: exported method Operator.BindOperation should have comment or be unexported (golint)
    • testify/mock_response_writer.go
    • Line 10: warning: exported function NewMockResponseWriter should have comment or be unexported (golint)
    • Line 16: warning: exported type MockResponseWriter should have comment or be unexported (golint)
    • Line 24: warning: exported method MockResponseWriter.Header should have comment or be unexported (golint)
    • Line 38: warning: exported method MockResponseWriter.WriteHeader should have comment or be unexported (golint)
    • Line 42: warning: exported method MockResponseWriter.Response should have comment or be unexported (golint)
    • Line 50: warning: exported method MockResponseWriter.MustDumpResponse should have comment or be unexported (golint)
    • client/client.go
    • Line 27: warning: exported type HttpTransport should have comment or be unexported (golint)
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.SetDefaults should have comment or be unexported (golint)
    • Line 60: warning: exported function ContextWithClient should have comment or be unexported (golint)
    • Line 64: warning: exported function ClientFromContext should have comment or be unexported (golint)
    • Line 76: warning: exported function ContextWithDefaultHttpTransport should have comment or be unexported (golint)
    • Line 80: warning: exported function DefaultHttpTransportFromContext should have comment or be unexported (golint)
    • Line 90: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 176: warning: exported type Result should have comment or be unexported (golint)
    • Line 183: warning: exported method Result.StatusCode should have comment or be unexported (golint)
    • Line 190: warning: exported method Result.Meta should have comment or be unexported (golint)
    • Line 197: warning: exported method Result.Into should have comment or be unexported (golint)
    • Line 266: warning: comment on exported function GetShortConnClient should be of the form "GetShortConnClient ..." (golint)
    • Line 271: warning: exported function GetShortConnClientContext should have comment or be unexported (golint)
    • httpx/interfaces.go
    • Line 8: warning: exported type ContentTypeDescriber should have comment or be unexported (golint)
    • Line 12: warning: exported type StatusCodeDescriber should have comment or be unexported (golint)
    • Line 16: warning: exported type CookiesDescriber should have comment or be unexported (golint)
    • Line 20: warning: exported type RedirectDescriber should have comment or be unexported (golint)
    • client/generator/type_generator.go
    • Line 19: warning: exported function NewTypeGenerator should have comment or be unexported (golint)
    • Line 27: warning: exported type TypeGenerator should have comment or be unexported (golint)
    • Line 33: warning: exported method TypeGenerator.Scan should have comment or be unexported (golint)
    • Line 74: warning: exported method TypeGenerator.Type should have comment or be unexported (golint)
    • Line 104: warning: exported method TypeGenerator.TypeIndirect should have comment or be unexported (golint)
    • Line 220: warning: exported method TypeGenerator.BasicType should have comment or be unexported (golint)
    • Line 247: warning: exported method TypeGenerator.FieldsFrom should have comment or be unexported (golint)
    • Line 285: warning: exported method TypeGenerator.FieldOf should have comment or be unexported (golint)
    • httpx/attachment.go
    • Line 9: warning: exported function NewAttachment should have comment or be unexported (golint)
    • Line 16: warning: exported type Attachment should have comment or be unexported (golint)
    • Line 22: warning: exported method Attachment.ContentType should have comment or be unexported (golint)
    • Line 29: warning: exported method Attachment.Meta should have comment or be unexported (golint)
    • client/generator/service_client_generator.go
    • Line 10: warning: exported function NewServiceClientGenerator should have comment or be unexported (golint)
    • Line 17: warning: exported type ServiceClientGenerator should have comment or be unexported (golint)
    • Line 22: warning: exported method ServiceClientGenerator.Scan should have comment or be unexported (golint)
    • Line 52: warning: exported method ServiceClientGenerator.WriteClientInterface should have comment or be unexported (golint)
    • Line 73: warning: exported method ServiceClientGenerator.ClientInterfaceName should have comment or be unexported (golint)
    • Line 77: warning: exported method ServiceClientGenerator.ClientInstanceName should have comment or be unexported (golint)
    • Line 81: warning: exported method ServiceClientGenerator.WriteClient should have comment or be unexported (golint)
    • Line 109: warning: exported method ServiceClientGenerator.OperationMethod should have comment or be unexported (golint)
    • transformers/transformer.go
    • Line 18: warning: exported type TransformerMgr should have comment or be unexported (golint)
    • Line 24: warning: exported function ContextWithTransformerMgr should have comment or be unexported (golint)
    • Line 28: warning: exported function TransformerMgrFromContext should have comment or be unexported (golint)
    • Line 32: warning: exported type Transformer should have comment or be unexported (golint)
    • Line 52: warning: exported var TagNameKey should have comment or be unexported (golint)
    • Line 53: warning: exported var TagMIMEKey should have comment or be unexported (golint)
    • Line 55: warning: exported function TransformerOptionFromStructField should have comment or be unexported (golint)
    • Line 79: warning: exported type TransformerOption should have comment or be unexported (golint)
    • Line 85: warning: exported type CommonTransformOption should have comment or be unexported (golint)
    • Line 114: warning: exported var TransformerMgrDefault should have comment or be unexported (golint)
    • Line 116: warning: exported type TransformerFactory should have comment or be unexported (golint)
    • Line 121: warning: exported method TransformerFactory.Register should have comment or be unexported (golint)
    • Line 133: warning: exported method TransformerFactory.NewTransformer should have comment or be unexported (golint)
    • Line 175: warning: exported type Adder should have comment or be unexported (golint)
    • Line 179: warning: exported function NewMaybeTransformer should have comment or be unexported (golint)
    • Line 186: warning: exported type MaybeTransformer should have comment or be unexported (golint)
    • Line 191: warning: exported method MaybeTransformer.Add should have comment or be unexported (golint)
    • Line 203: warning: exported method MaybeTransformer.DecodeFromReader should have comment or be unexported (golint)
    • Line 214: warning: exported method MaybeTransformer.EncodeToWriter should have comment or be unexported (golint)
    • openapi/generator/definition_scanner.go
    • Line 23: warning: exported function NewDefinitionScanner should have comment or be unexported (golint)
    • Line 31: warning: exported type DefinitionScanner should have comment or be unexported (golint)
    • Line 80: warning: exported method DefinitionScanner.BindSchemas should have comment or be unexported (golint)
    • Line 84: warning: exported method DefinitionScanner.Def should have comment or be unexported (golint)
    • Line 258: warning: exported function NewSchemaRefer should have comment or be unexported (golint)
    • Line 264: warning: exported type SchemaRefer should have comment or be unexported (golint)
    • Line 268: warning: exported method SchemaRefer.RefString should have comment or be unexported (golint)
    • Line 276: warning: exported method DefinitionScanner.GetSchemaByType should have comment or be unexported (golint)
    • Line 445: warning: exported type VendorExtensible should have comment or be unexported (golint)
    • httpx/response.go
    • Line 16: warning: exported type ResponseWrapper should have comment or be unexported (golint)
    • Line 18: warning: exported function Compose should have comment or be unexported (golint)
    • Line 28: warning: exported function WithStatusCode should have comment or be unexported (golint)
    • Line 36: warning: exported function WithCookies should have comment or be unexported (golint)
    • Line 44: warning: exported function WithSchema should have comment or be unexported (golint)
    • Line 51: warning: exported function WithContentType should have comment or be unexported (golint)
    • Line 59: warning: exported function Metadata should have comment or be unexported (golint)
    • Line 65: warning: exported function WithMetadata should have comment or be unexported (golint)
    • Line 73: warning: exported function ResponseFrom should have comment or be unexported (golint)
    • Line 122: warning: exported type Upgrader should have comment or be unexported (golint)
    • Line 126: warning: exported type Response should have comment or be unexported (golint)
    • Line 150: warning: exported type Transformer should have comment or be unexported (golint)
    • Line 170: warning: exported type Encode should have comment or be unexported (golint)
    • Line 172: warning: exported type ResponseWriterError should have comment or be unexported (golint)
    • Line 176: warning: exported method Response.WriteTo should have comment or be unexported (golint)
    • transformers/html_text_transformer.go
    • Line 19: warning: exported type HTMLTextTransformer should have comment or be unexported (golint)
    • Line 26: warning: exported method HTMLTextTransformer.Names should have comment or be unexported (golint)
    • Line 30: warning: exported method HTMLTextTransformer.NamedByTag should have comment or be unexported (golint)
    • Line 34: warning: exported method HTMLTextTransformer.New should have comment or be unexported (golint)
    • Line 38: warning: exported method HTMLTextTransformer.EncodeToWriter should have comment or be unexported (golint)
    • Line 63: warning: exported method HTMLTextTransformer.DecodeFromReader should have comment or be unexported (golint)
    • transformers/path_walker.go
    • Line 7: warning: exported type PathWalker should have comment or be unexported (golint)
    • Line 11: warning: exported method PathWalker.Enter should have comment or be unexported (golint)
    • Line 15: warning: exported method PathWalker.Exit should have comment or be unexported (golint)
    • Line 19: warning: exported method PathWalker.Paths should have comment or be unexported (golint)
    • transformers/xml_transformer.go
    • Line 18: warning: exported type XMLTransformer should have comment or be unexported (golint)
    • Line 21: warning: exported method XMLTransformer.Names should have comment or be unexported (golint)
    • Line 29: warning: exported method XMLTransformer.NamedByTag should have comment or be unexported (golint)
    • Line 33: warning: exported method XMLTransformer.New should have comment or be unexported (golint)
    • Line 37: warning: exported method XMLTransformer.EncodeToWriter should have comment or be unexported (golint)
    • Line 49: warning: exported method XMLTransformer.DecodeFromReader should have comment or be unexported (golint)
    • service_meta.go
    • Line 9: warning: exported type ServiceMeta should have comment or be unexported (golint)
    • Line 14: warning: exported method ServiceMeta.SetDefaults should have comment or be unexported (golint)
    • Line 33: warning: exported function ContextWithHttpRequest should have comment or be unexported (golint)
    • Line 37: warning: exported function HttpRequestFromContext should have comment or be unexported (golint)
    • Line 44: warning: exported function ContextWithServiceMeta should have comment or be unexported (golint)
    • Line 48: warning: exported function ServerMetaFromContext should have comment or be unexported (golint)
    • openapi/generator/router_scanner.go
    • Line 17: warning: exported function NewRouterScanner should have comment or be unexported (golint)
    • Line 29: warning: exported type RouterScanner should have comment or be unexported (golint)
    • Line 105: warning: exported method RouterScanner.Router should have comment or be unexported (golint)
    • Line 109: warning: exported type OperatorWithTypeName should have comment or be unexported (golint)
    • Line 118: warning: exported method RouterScanner.OperatorTypeNamesFromArgs should have comment or be unexported (golint)
    • Line 171: warning: exported method RouterScanner.OperatorTypeNameFromType should have comment or be unexported (golint)
    • Line 191: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 198: warning: exported method Router.Name should have comment or be unexported (golint)
    • Line 233: warning: exported type Router should have comment or be unexported (golint)
    • Line 240: warning: exported method Router.AppendOperators should have comment or be unexported (golint)
    • Line 240: warning: receiver name router should be consistent with previous receiver name r for Router (golint)
    • Line 244: warning: exported method Router.With should have comment or be unexported (golint)
    • Line 244: warning: receiver name router should be consistent with previous receiver name r for Router (golint)
    • Line 248: warning: exported method Router.Register should have comment or be unexported (golint)
    • Line 248: warning: receiver name router should be consistent with previous receiver name r for Router (golint)
    • Line 256: warning: exported method Router.Route should have comment or be unexported (golint)
    • Line 256: warning: receiver name router should be consistent with previous receiver name r for Router (golint)
    • Line 273: warning: exported method Router.Routes should have comment or be unexported (golint)
    • Line 273: warning: receiver name router should be consistent with previous receiver name r for Router (golint)
    • Line 293: warning: exported type Route should have comment or be unexported (golint)
    • Line 311: warning: exported method Route.Method should have comment or be unexported (golint)
    • Line 321: warning: exported method Route.Path should have comment or be unexported (golint)
    • httpx/headers.go
    • Line 4: warning: exported const HeaderUserAgent should have comment (or a comment on this block) or be unexported (golint)
    • httpx/method__generated.go
    • Line 7: warning: exported type MethodGet should have comment or be unexported (golint)
    • Line 9: warning: exported method MethodGet.Method should have comment or be unexported (golint)
    • Line 13: warning: exported type MethodHead should have comment or be unexported (golint)
    • Line 15: warning: exported method MethodHead.Method should have comment or be unexported (golint)
    • Line 19: warning: exported type MethodPost should have comment or be unexported (golint)
    • Line 21: warning: exported method MethodPost.Method should have comment or be unexported (golint)
    • Line 25: warning: exported type MethodPut should have comment or be unexported (golint)
    • Line 27: warning: exported method MethodPut.Method should have comment or be unexported (golint)
    • Line 31: warning: exported type MethodPatch should have comment or be unexported (golint)
    • Line 33: warning: exported method MethodPatch.Method should have comment or be unexported (golint)
    • Line 37: warning: exported type MethodDelete should have comment or be unexported (golint)
    • Line 39: warning: exported method MethodDelete.Method should have comment or be unexported (golint)
    • Line 43: warning: exported type MethodConnect should have comment or be unexported (golint)
    • Line 45: warning: exported method MethodConnect.Method should have comment or be unexported (golint)
    • Line 49: warning: exported type MethodOptions should have comment or be unexported (golint)
    • Line 51: warning: exported method MethodOptions.Method should have comment or be unexported (golint)
    • Line 55: warning: exported type MethodTrace should have comment or be unexported (golint)
    • Line 57: warning: exported method MethodTrace.Method should have comment or be unexported (golint)
    • pathname_pattern.go
    • Line 11: warning: exported function ParamsFromMap should have comment or be unexported (golint)
    • Line 22: warning: exported function NewPathnamePattern should have comment or be unexported (golint)
    • Line 39: warning: exported type PathnamePattern should have comment or be unexported (golint)
    • Line 48: warning: exported method PathnamePattern.Stringify should have comment or be unexported (golint)
    • Line 66: warning: exported method PathnamePattern.Parse should have comment or be unexported (golint)
    • request_transformer.go
    • Line 31: warning: exported function NewRequestTransformerMgr should have comment or be unexported (golint)
    • Line 43: warning: exported method RequestTransformerMgr.SetDefaults should have comment or be unexported (golint)
    • Line 52: warning: exported method RequestTransformerMgr.NewRequest should have comment or be unexported (golint)
    • Line 56: warning: exported method RequestTransformerMgr.NewRequestWithContext should have comment or be unexported (golint)
    • Line 67: warning: exported method RequestTransformerMgr.NewRequestTransformer should have comment or be unexported (golint)
    • Line 82: warning: exported function AsRequestOut should have comment or be unexported (golint)
    • Line 159: warning: exported type RequestTransformerMgr should have comment or be unexported (golint)
    • Line 165: warning: exported type RequestTransformer should have comment or be unexported (golint)
    • Line 170: warning: exported method RequestTransformer.NewRequest should have comment or be unexported (golint)
    • Line 174: warning: exported method RequestTransformer.NewRequestWithContext should have comment or be unexported (golint)
    • Line 294: warning: exported function EnableQueryInBodyForHttpGet should have comment or be unexported (golint)
    • Line 298: warning: exported function ShouldQueryInBodyForHttpGet should have comment or be unexported (golint)
    • Line 305: warning: exported type BadRequest should have comment or be unexported (golint)
    • Line 311: warning: exported method BadRequest.EnableErrTalk should have comment or be unexported (golint)
    • Line 315: warning: exported method BadRequest.SetMsg should have comment or be unexported (golint)
    • Line 319: warning: exported method BadRequest.AddErr should have comment or be unexported (golint)
    • Line 333: warning: exported method BadRequest.Err should have comment or be unexported (golint)
    • Line 352: warning: exported type PostValidator should have comment or be unexported (golint)
    • Line 356: warning: exported method RequestTransformer.DecodeFrom should have comment or be unexported (golint)
    • Line 437: warning: exported function NewRequestParameter should have comment or be unexported (golint)
    • Line 444: warning: exported type RequestParameter should have comment or be unexported (golint)
    • Line 452: warning: exported function NewRequestInfo should have comment or be unexported (golint)
    • Line 465: warning: exported type RequestInfo should have comment or be unexported (golint)
    • Line 473: warning: exported method RequestInfo.Value should have comment or be unexported (golint)
    • Line 481: warning: exported method RequestInfo.Values should have comment or be unexported (golint)
    • Line 499: warning: exported method RequestInfo.Param should have comment or be unexported (golint)
    • Line 503: warning: exported method RequestInfo.QueryValues should have comment or be unexported (golint)
    • Line 524: warning: exported method RequestInfo.HeaderValues should have comment or be unexported (golint)
    • Line 528: warning: exported method RequestInfo.CookieValues should have comment or be unexported (golint)
    • Line 545: warning: exported method RequestInfo.Body should have comment or be unexported (golint)
    • Line 549: warning: exported function OperatorParamsFromStruct should have comment or be unexported (golint)
    • client/generator/operation_generator.go
    • Line 12: warning: exported function NewOperationGenerator should have comment or be unexported (golint)
    • Line 19: warning: exported type OperationGenerator should have comment or be unexported (golint)
    • Line 33: warning: exported method OperationGenerator.Scan should have comment or be unexported (golint)
    • Line 39: warning: exported method OperationGenerator.ID should have comment or be unexported (golint)
    • Line 46: warning: exported method OperationGenerator.WriteOperation should have comment or be unexported (golint)
    • Line 184: warning: exported method OperationGenerator.ParamField should have comment or be unexported (golint)
    • Line 198: warning: exported method OperationGenerator.RequestBodyField should have comment or be unexported (golint)
    • Line 220: warning: exported method OperationGenerator.ResponseType should have comment or be unexported (golint)
    • http_route_meta.go
    • Line 15: warning: exported type MethodDescriber should have comment or be unexported (golint)
    • Line 19: warning: exported type PathDescriber should have comment or be unexported (golint)
    • Line 23: warning: exported type BasePathDescriber should have comment or be unexported (golint)
    • Line 29: warning: exported function NewOperatorFactoryWithRouteMeta should have comment or be unexported (golint)
    • Line 86: warning: exported type RouteMeta should have comment or be unexported (golint)
    • Line 95: warning: exported type OperatorFactoryWithRouteMeta should have comment or be unexported (golint)
    • Line 100: warning: exported function NewHttpRouteMeta should have comment or be unexported (golint)
    • Line 113: warning: exported type HttpRouteMeta should have comment or be unexported (golint)
    • Line 118: warning: exported method HttpRouteMeta.OperatorNames should have comment or be unexported (golint)
    • Line 136: warning: exported method HttpRouteMeta.Key should have comment or be unexported (golint)
    • Line 146: warning: exported method HttpRouteMeta.Log should have comment or be unexported (golint)
    • Line 182: warning: exported method HttpRouteMeta.Method should have comment or be unexported (golint)
    • Line 192: warning: exported method HttpRouteMeta.Path should have comment or be unexported (golint)
    • Line 209: warning: exported function BasePath should have comment or be unexported (golint)
    • Line 215: warning: exported function Group should have comment or be unexported (golint)
    • Line 219: warning: exported type MetaOperator should have comment or be unexported (golint)
    • Line 225: warning: exported method MetaOperator.Path should have comment or be unexported (golint)
    • Line 229: warning: exported method MetaOperator.BasePath should have comment or be unexported (golint)
    • openapi/generator/status_err_scanner.go
    • Line 19: warning: exported function NewStatusErrScanner should have comment or be unexported (golint)
    • Line 31: warning: exported type StatusErrScanner should have comment or be unexported (golint)
    • Line 40: warning: exported method StatusErrScanner.StatusErrorsInFunc should have comment or be unexported (golint)
    • httpx/mines__generated.go
    • Line 7: warning: exported function NewApplicationOgg should have comment or be unexported (golint)
    • Line 11: warning: exported type ApplicationOgg should have comment or be unexported (golint)
    • Line 15: warning: exported method ApplicationOgg.ContentType should have comment or be unexported (golint)
    • Line 19: warning: exported function NewAudioMidi should have comment or be unexported (golint)
    • Line 23: warning: exported type AudioMidi should have comment or be unexported (golint)
    • Line 27: warning: exported method AudioMidi.ContentType should have comment or be unexported (golint)
    • Line 31: warning: exported function NewAudioMp3 should have comment or be unexported (golint)
    • Line 35: warning: exported type AudioMp3 should have comment or be unexported (golint)
    • Line 39: warning: exported method AudioMp3.ContentType should have comment or be unexported (golint)
    • Line 43: warning: exported function NewAudioOgg should have comment or be unexported (golint)
    • Line 47: warning: exported type AudioOgg should have comment or be unexported (golint)
    • Line 51: warning: exported method AudioOgg.ContentType should have comment or be unexported (golint)
    • Line 55: warning: exported function NewAudioWave should have comment or be unexported (golint)
    • Line 59: warning: exported type AudioWave should have comment or be unexported (golint)
    • Line 63: warning: exported method AudioWave.ContentType should have comment or be unexported (golint)
    • Line 67: warning: exported function NewAudioWebm should have comment or be unexported (golint)
    • Line 71: warning: exported type AudioWebm should have comment or be unexported (golint)
    • Line 75: warning: exported method AudioWebm.ContentType should have comment or be unexported (golint)
    • Line 79: warning: exported function NewImageBmp should have comment or be unexported (golint)
    • Line 83: warning: exported type ImageBmp should have comment or be unexported (golint)
    • Line 87: warning: exported method ImageBmp.ContentType should have comment or be unexported (golint)
    • Line 91: warning: exported function NewImageGIF should have comment or be unexported (golint)
    • Line 95: warning: exported type ImageGIF should have comment or be unexported (golint)
    • Line 99: warning: exported method ImageGIF.ContentType should have comment or be unexported (golint)
    • Line 103: warning: exported function NewImageJPEG should have comment or be unexported (golint)
    • Line 107: warning: exported type ImageJPEG should have comment or be unexported (golint)
    • Line 111: warning: exported method ImageJPEG.ContentType should have comment or be unexported (golint)
    • Line 115: warning: exported function NewImagePNG should have comment or be unexported (golint)
    • Line 119: warning: exported type ImagePNG should have comment or be unexported (golint)
    • Line 123: warning: exported method ImagePNG.ContentType should have comment or be unexported (golint)
    • Line 127: warning: exported function NewImageSVG should have comment or be unexported (golint)
    • Line 131: warning: exported type ImageSVG should have comment or be unexported (golint)
    • Line 135: warning: exported method ImageSVG.ContentType should have comment or be unexported (golint)
    • Line 139: warning: exported function NewImageWebp should have comment or be unexported (golint)
    • Line 143: warning: exported type ImageWebp should have comment or be unexported (golint)
    • Line 147: warning: exported method ImageWebp.ContentType should have comment or be unexported (golint)
    • Line 151: warning: exported function NewCSS should have comment or be unexported (golint)
    • Line 155: warning: exported type CSS should have comment or be unexported (golint)
    • Line 159: warning: exported method CSS.ContentType should have comment or be unexported (golint)
    • Line 163: warning: exported function NewHTML should have comment or be unexported (golint)
    • Line 167: warning: exported type HTML should have comment or be unexported (golint)
    • Line 171: warning: exported method HTML.ContentType should have comment or be unexported (golint)
    • Line 175: warning: exported function NewPlain should have comment or be unexported (golint)
    • Line 179: warning: exported type Plain should have comment or be unexported (golint)
    • Line 183: warning: exported method Plain.ContentType should have comment or be unexported (golint)
    • Line 187: warning: exported function NewVideoOgg should have comment or be unexported (golint)
    • Line 191: warning: exported type VideoOgg should have comment or be unexported (golint)
    • Line 195: warning: exported method VideoOgg.ContentType should have comment or be unexported (golint)
    • Line 199: warning: exported function NewVideoWebm should have comment or be unexported (golint)
    • Line 203: warning: exported type VideoWebm should have comment or be unexported (golint)
    • Line 207: warning: exported method VideoWebm.ContentType should have comment or be unexported (golint)
    • httpx/redirect__generated.go
    • Line 8: warning: exported function RedirectWithStatusMultipleChoices should have comment or be unexported (golint)
    • Line 16: warning: exported type StatusMultipleChoices should have comment or be unexported (golint)
    • Line 20: warning: exported method StatusMultipleChoices.StatusCode should have comment or be unexported (golint)
    • Line 24: warning: exported method StatusMultipleChoices.Location should have comment or be unexported (golint)
    • Line 28: warning: exported function RedirectWithStatusMovedPermanently should have comment or be unexported (golint)
    • Line 36: warning: exported type StatusMovedPermanently should have comment or be unexported (golint)
    • Line 40: warning: exported method StatusMovedPermanently.StatusCode should have comment or be unexported (golint)
    • Line 44: warning: exported method StatusMovedPermanently.Location should have comment or be unexported (golint)
    • Line 48: warning: exported function RedirectWithStatusFound should have comment or be unexported (golint)
    • Line 56: warning: exported type StatusFound should have comment or be unexported (golint)
    • Line 60: warning: exported method StatusFound.StatusCode should have comment or be unexported (golint)
    • Line 64: warning: exported method StatusFound.Location should have comment or be unexported (golint)
    • Line 68: warning: exported function RedirectWithStatusSeeOther should have comment or be unexported (golint)
    • Line 76: warning: exported type StatusSeeOther should have comment or be unexported (golint)
    • Line 80: warning: exported method StatusSeeOther.StatusCode should have comment or be unexported (golint)
    • Line 84: warning: exported method StatusSeeOther.Location should have comment or be unexported (golint)
    • Line 88: warning: exported function RedirectWithStatusNotModified should have comment or be unexported (golint)
    • Line 96: warning: exported type StatusNotModified should have comment or be unexported (golint)
    • Line 100: warning: exported method StatusNotModified.StatusCode should have comment or be unexported (golint)
    • Line 104: warning: exported method StatusNotModified.Location should have comment or be unexported (golint)
    • Line 108: warning: exported function RedirectWithStatusUseProxy should have comment or be unexported (golint)
    • Line 116: warning: exported type StatusUseProxy should have comment or be unexported (golint)
    • Line 120: warning: exported method StatusUseProxy.StatusCode should have comment or be unexported (golint)
    • Line 124: warning: exported method StatusUseProxy.Location should have comment or be unexported (golint)
    • Line 128: warning: exported function RedirectWithStatusTemporaryRedirect should have comment or be unexported (golint)
    • Line 136: warning: exported type StatusTemporaryRedirect should have comment or be unexported (golint)
    • Line 140: warning: exported method StatusTemporaryRedirect.StatusCode should have comment or be unexported (golint)
    • Line 144: warning: exported method StatusTemporaryRedirect.Location should have comment or be unexported (golint)
    • Line 148: warning: exported function RedirectWithStatusPermanentRedirect should have comment or be unexported (golint)
    • Line 156: warning: exported type StatusPermanentRedirect should have comment or be unexported (golint)
    • Line 160: warning: exported method StatusPermanentRedirect.StatusCode should have comment or be unexported (golint)
    • Line 164: warning: exported method StatusPermanentRedirect.Location should have comment or be unexported (golint)
    • httpx/utils.go
    • Line 9: warning: exported function ClientIP should have comment or be unexported (golint)
    • Line 27: warning: comment on exported function ClientIPByHeaderForwardedFor should be of the form "ClientIPByHeaderForwardedFor ..." (golint)
    • Line 36: warning: comment on exported function ClientIPByHeaderRealIP should be of the form "ClientIPByHeaderRealIP ..." (golint)
    • openapi/generator/validations.go
    • Line 13: warning: exported function BindSchemaValidationByValidateBytes should have comment or be unexported (golint)
    • Line 30: warning: exported function BindSchemaValidationByValidator should have comment or be unexported (golint)
    • openapi/openapi.go
    • Line 23: warning: exported var OpenAPIRouter should have comment or be unexported (golint)
    • Line 25: warning: exported type OpenAPI should have comment or be unexported (golint)
    • Line 29: warning: exported method OpenAPI.Output should have comment or be unexported (golint)
    • http_route_handler.go
    • Line 19: warning: exported function NewHttpRouteHandler should have comment or be unexported (golint)
    • Line 46: warning: exported type HttpRouteHandler should have comment or be unexported (golint)
    • Line 55: warning: exported function ContextWithOperationID should have comment or be unexported (golint)
    • Line 59: warning: exported function OperationIDFromContext should have comment or be unexported (golint)
    • Line 65: warning: exported function ContextWithOperatorFactory should have comment or be unexported (golint)
    • Line 69: warning: exported function OperatorFactoryFromContext should have comment or be unexported (golint)
    • Line 174: warning: exported type ResponseWithError should have comment or be unexported (golint)
    • transformers/multipart_transformer.go
    • Line 25: warning: exported type MultipartTransformer should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method MultipartTransformer.Names should be of the form "Names ..." (golint)
    • Line 36: warning: exported method MultipartTransformer.NamedByTag should have comment or be unexported (golint)
    • Line 44: warning: exported method MultipartTransformer.New should have comment or be unexported (golint)
    • Line 61: warning: exported method MultipartTransformer.EncodeToWriter should have comment or be unexported (golint)
    • Line 163: warning: exported method MultipartTransformer.DecodeFromReader should have comment or be unexported (golint)
    • Line 235: warning: exported function MustNewFileHeader should have comment or be unexported (golint)
    • Line 243: warning: exported function NewFileHeader should have comment or be unexported (golint)
    • transformers/plain_text_transformer.go
    • Line 19: warning: exported type PlainTextTransformer should have comment or be unexported (golint)
    • Line 26: warning: exported method PlainTextTransformer.Names should have comment or be unexported (golint)
    • Line 30: warning: exported method PlainTextTransformer.NamedByTag should have comment or be unexported (golint)
    • Line 34: warning: exported method PlainTextTransformer.New should have comment or be unexported (golint)
    • Line 38: warning: exported method PlainTextTransformer.EncodeToWriter should have comment or be unexported (golint)
    • Line 63: warning: exported method PlainTextTransformer.DecodeFromReader should have comment or be unexported (golint)
    • transformers/json_transformer.go
    • Line 22: warning: exported type JSONTransformer should have comment or be unexported (golint)
    • Line 25: warning: exported method JSONTransformer.Names should have comment or be unexported (golint)
    • Line 29: warning: exported method JSONTransformer.NamedByTag should have comment or be unexported (golint)
    • Line 37: warning: exported method JSONTransformer.New should have comment or be unexported (golint)
    • Line 41: warning: exported method JSONTransformer.EncodeToWriter should have comment or be unexported (golint)
    • Line 53: warning: exported method JSONTransformer.DecodeFromReader should have comment or be unexported (golint)
    • Line 173: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • handlers/log_handler.go
    • Line 16: warning: exported function LogHandler should have comment or be unexported (golint)
    • Line 28: warning: exported type LoggerResponseWriter should have comment or be unexported (golint)
    • Line 37: warning: exported method LoggerResponseWriter.Header should have comment or be unexported (golint)
    • Line 41: warning: exported method LoggerResponseWriter.WriteErr should have comment or be unexported (golint)
    • Line 45: warning: exported method LoggerResponseWriter.WriteHeader should have comment or be unexported (golint)
    • client/generator/client_generator.go
    • Line 22: warning: exported function OptionVendorImportByGoMod should have comment or be unexported (golint)
    • Line 28: warning: exported type GenOptionFn should have comment or be unexported (golint)
    • Line 30: warning: exported type GenOption should have comment or be unexported (golint)
    • Line 34: warning: exported function NewClientGenerator should have comment or be unexported (golint)
    • Line 48: warning: exported type ClientGenerator should have comment or be unexported (golint)
    • Line 56: warning: exported method ClientGenerator.Load should have comment or be unexported (golint)
    • Line 139: warning: exported function WithVendorImports should have comment or be unexported (golint)
    • Line 143: warning: exported function VendorImportsFromContext should have comment or be unexported (golint)
    • Line 150: warning: exported method ClientGenerator.Output should have comment or be unexported (golint)
    • utils.go
    • Line 5: warning: exported function TryCatch should have comment or be unexported (golint)
    • transformers/flatten_params.go
    • Line 14: warning: exported type FlattenParams should have comment or be unexported (golint)
    • Line 20: warning: exported method FlattenParams.NewValidator should have comment or be unexported (golint)
    • Line 44: warning: exported method FlattenParams.Validate should have comment or be unexported (golint)
    • Line 83: warning: exported method FlattenParams.CollectParams should have comment or be unexported (golint)
    • Line 118: warning: exported type MayValidator should have comment or be unexported (golint)
    • Line 122: warning: exported function NewValidator should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words