Preparing report...

Report for github.com/TykTechnologies/tyk

A+    Excellent!    Found 149 issues across 265 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!


golint49%

Golint is a linter for Go source code.

    • tyk/gateway/mw_basic_auth.go
    • Line 40: warning: exported method BasicAuthKeyIsValid.Name should have comment or be unexported (golint)
    • Line 75: warning: error should be the last type when returning multiple items (golint)
    • Line 87: warning: error should be the last type when returning multiple items (golint)
    • Line 127: warning: error should be the last type when returning multiple items (golint)
    • Line 160: warning: error should be the last type when returning multiple items (golint)
    • Line 188: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 222: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/redis_signal_handle_config.go
    • Line 15: warning: exported type ConfigPayload should have comment or be unexported (golint)
    • Line 103: warning: exported type GetConfigPayload should have comment or be unexported (golint)
    • Line 109: warning: exported type ReturnConfigPayload should have comment or be unexported (golint)
    • Line 124: warning: don't use underscores in Go names; range var field_name should be fieldName (golint)
    • tyk/gateway/res_handler_jq_transform_dummy.go
    • Line 11: warning: exported type ResponseTransformJQMiddleware should have comment or be unexported (golint)
    • Line 15: warning: exported method ResponseTransformJQMiddleware.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method ResponseTransformJQMiddleware.Init should have comment or be unexported (golint)
    • Line 25: warning: exported method ResponseTransformJQMiddleware.HandleError should have comment or be unexported (golint)
    • Line 28: warning: exported method ResponseTransformJQMiddleware.HandleResponse should have comment or be unexported (golint)
    • tyk/log/log.go
    • Line 30: warning: exported type TranslationFormatter should have comment or be unexported (golint)
    • Line 34: warning: exported method TranslationFormatter.Format should have comment or be unexported (golint)
    • Line 43: warning: exported type RawFormatter should have comment or be unexported (golint)
    • Line 45: warning: exported method RawFormatter.Format should have comment or be unexported (golint)
    • Line 58: warning: exported function Get should have comment or be unexported (golint)
    • Line 72: warning: exported function GetRaw should have comment or be unexported (golint)
    • tyk/trace/openzipkin/zipkin.go
    • Line 23: warning: exported const Name should have comment or be unexported (golint)
    • Line 25: warning: exported type Span should have comment or be unexported (golint)
    • Line 30: warning: exported method Span.Context should have comment or be unexported (golint)
    • Line 34: warning: exported method Span.Finish should have comment or be unexported (golint)
    • Line 38: warning: exported method Span.FinishWithOptions should have comment or be unexported (golint)
    • Line 42: warning: exported method Span.SetOperationName should have comment or be unexported (golint)
    • Line 47: warning: exported method Span.SetTag should have comment or be unexported (golint)
    • Line 52: warning: exported method Span.LogFields should have comment or be unexported (golint)
    • Line 83: warning: exported method Span.LogKV should have comment or be unexported (golint)
    • Line 84: warning: exported method Span.SetBaggageItem should have comment or be unexported (golint)
    • Line 85: warning: exported method Span.BaggageItem should have comment or be unexported (golint)
    • Line 86: warning: exported method Span.Tracer should have comment or be unexported (golint)
    • Line 87: warning: exported method Span.LogEvent should have comment or be unexported (golint)
    • Line 88: warning: exported method Span.LogEventWithPayload should have comment or be unexported (golint)
    • Line 89: warning: exported method Span.Log should have comment or be unexported (golint)
    • Line 187: warning: exported function NewTracer should have comment or be unexported (golint)
    • Line 245: warning: exported type Tracer should have comment or be unexported (golint)
    • Line 250: warning: exported method Tracer.Name should have comment or be unexported (golint)
    • Line 254: warning: exported function Init should have comment or be unexported (golint)
    • tyk/gateway/mw_rate_limiting.go
    • Line 22: warning: exported method RateLimitAndQuotaCheck.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method RateLimitAndQuotaCheck.EnabledForSpec should have comment or be unexported (golint)
    • Line 30: warning: error should be the last type when returning multiple items (golint)
    • Line 47: warning: error should be the last type when returning multiple items (golint)
    • Line 65: warning: error should be the last type when returning multiple items (golint)
    • tyk/headers/headers.go
    • Line 4: warning: exported const UserAgent should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported const TykHookshot should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported const XRealIP should have comment (or a comment on this block) or be unexported (golint)
    • tyk/request/real_ip_test.go
    • Line 41: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 97: warning: should not use basic type string as key in context.WithValue (golint)
    • tyk/gateway/ldap_auth_handler.go
    • Line 21: warning: exported method LDAPStorageHandler.LoadConfFromMeta should have comment or be unexported (golint)
    • Line 39: warning: exported method LDAPStorageHandler.Connect should have comment or be unexported (golint)
    • Line 50: warning: exported method LDAPStorageHandler.GetKey should have comment or be unexported (golint)
    • Line 56: warning: don't use underscores in Go names; var search_request should be searchRequest (golint)
    • Line 92: warning: exported method LDAPStorageHandler.GetMultiKey should have comment or be unexported (golint)
    • Line 92: warning: receiver name r should be consistent with previous receiver name l for LDAPStorageHandler (golint)
    • Line 98: warning: exported method LDAPStorageHandler.GetRawKey should have comment or be unexported (golint)
    • Line 104: warning: exported method LDAPStorageHandler.SetExp should have comment or be unexported (golint)
    • Line 109: warning: exported method LDAPStorageHandler.GetExp should have comment or be unexported (golint)
    • Line 114: warning: exported method LDAPStorageHandler.GetKeys should have comment or be unexported (golint)
    • Line 120: warning: exported method LDAPStorageHandler.GetKeysAndValues should have comment or be unexported (golint)
    • Line 126: warning: exported method LDAPStorageHandler.GetKeysAndValuesWithFilter should have comment or be unexported (golint)
    • Line 132: warning: exported method LDAPStorageHandler.SetKey should have comment or be unexported (golint)
    • Line 137: warning: exported method LDAPStorageHandler.SetRawKey should have comment or be unexported (golint)
    • Line 142: warning: exported method LDAPStorageHandler.DeleteKey should have comment or be unexported (golint)
    • Line 146: warning: exported method LDAPStorageHandler.DeleteAllKeys should have comment or be unexported (golint)
    • Line 146: warning: receiver name r should be consistent with previous receiver name l for LDAPStorageHandler (golint)
    • Line 151: warning: exported method LDAPStorageHandler.DeleteRawKey should have comment or be unexported (golint)
    • Line 155: warning: exported method LDAPStorageHandler.DeleteKeys should have comment or be unexported (golint)
    • Line 159: warning: exported method LDAPStorageHandler.Decrement should have comment or be unexported (golint)
    • Line 163: warning: exported method LDAPStorageHandler.IncrememntWithExpire should have comment or be unexported (golint)
    • Line 173: warning: exported method LDAPStorageHandler.SetRollingWindow should have comment or be unexported (golint)
    • Line 178: warning: exported method LDAPStorageHandler.GetRollingWindow should have comment or be unexported (golint)
    • Line 183: warning: exported method LDAPStorageHandler.GetSet should have comment or be unexported (golint)
    • Line 188: warning: exported method LDAPStorageHandler.AddToSet should have comment or be unexported (golint)
    • Line 192: warning: exported method LDAPStorageHandler.AppendToSet should have comment or be unexported (golint)
    • Line 196: warning: exported method LDAPStorageHandler.RemoveFromSet should have comment or be unexported (golint)
    • Line 200: warning: exported method LDAPStorageHandler.GetAndDeleteSet should have comment or be unexported (golint)
    • Line 205: warning: exported method LDAPStorageHandler.DeleteScanMatch should have comment or be unexported (golint)
    • Line 210: warning: exported method LDAPStorageHandler.GetKeyPrefix should have comment or be unexported (golint)
    • Line 215: warning: exported method LDAPStorageHandler.AddToSortedSet should have comment or be unexported (golint)
    • Line 219: warning: exported method LDAPStorageHandler.GetSortedSetRange should have comment or be unexported (golint)
    • Line 224: warning: exported method LDAPStorageHandler.RemoveSortedSetRange should have comment or be unexported (golint)
    • Line 229: warning: exported method LDAPStorageHandler.RemoveFromList should have comment or be unexported (golint)
    • Line 234: warning: exported method LDAPStorageHandler.GetListRange should have comment or be unexported (golint)
    • Line 239: warning: exported method LDAPStorageHandler.Exists should have comment or be unexported (golint)
    • tyk/gateway/mw_redis_cache.go
    • Line 41: warning: exported method RedisCacheMiddleware.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method RedisCacheMiddleware.Init should have comment or be unexported (golint)
    • Line 49: warning: exported method RedisCacheMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 53: warning: exported method RedisCacheMiddleware.CreateCheckSum should have comment or be unexported (golint)
    • Line 173: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/redis_analytics_purger.go
    • Line 19: warning: exported type RedisPurger should have comment or be unexported (golint)
    • Line 23: warning: exported method RedisPurger.PurgeLoop should have comment or be unexported (golint)
    • Line 36: warning: exported method RedisPurger.PurgeCache should have comment or be unexported (golint)
    • tyk/gateway/service_discovery_test.go
    • Line 24: warning: don't use underscores in Go names; const eureka_real should be eurekaReal (golint)
    • Line 107: warning: don't use underscores in Go names; const nested_consul should be nestedConsul (golint)
    • Line 137: warning: don't use underscores in Go names; const nested_list should be nestedList (golint)
    • tyk/apidef/importer/blueprint.go
    • Line 15: warning: exported const ApiaryBluePrint should have comment or be unexported (golint)
    • Line 17: warning: exported type BluePrintAST should have comment or be unexported (golint)
    • Line 97: warning: exported method BluePrintAST.LoadFrom should have comment or be unexported (golint)
    • Line 101: warning: exported method BluePrintAST.ConvertIntoApiVersion should have comment or be unexported (golint)
    • Line 156: warning: exported method BluePrintAST.InsertIntoAPIDefinitionAsVersion should have comment or be unexported (golint)
    • Line 162: warning: exported method BluePrintAST.ToAPIDefinition should have comment or be unexported (golint)
    • tyk/ctx/ctx.go
    • Line 13: warning: exported type Key should have comment or be unexported (golint)
    • Line 16: warning: exported const SessionData should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: context.Context should be the first parameter of a function (golint)
    • Line 73: warning: exported function GetAuthToken should have comment or be unexported (golint)
    • Line 80: warning: exported function GetSession should have comment or be unexported (golint)
    • Line 87: warning: exported function SetSession should have comment or be unexported (golint)
    • Line 91: warning: exported function SetDefinition should have comment or be unexported (golint)
    • Line 97: warning: exported function GetDefinition should have comment or be unexported (golint)
    • tyk/trace/log.go
    • Line 26: warning: exported function Error should have comment or be unexported (golint)
    • Line 31: warning: exported function Warning should have comment or be unexported (golint)
    • Line 43: warning: exported function Info should have comment or be unexported (golint)
    • tyk/gateway/jsvm_event_handler.go
    • Line 10: warning: don't use underscores in Go names; const EH_JSVMHandler should be EHJSVMHandler (golint)
    • Line 10: warning: exported const EH_JSVMHandler should have comment or be unexported (golint)
    • Line 12: warning: exported type JSVMContextGlobal should have comment or be unexported (golint)
    • Line 24: warning: comment on exported method JSVMEventHandler.Init should be of the form "Init ..." (golint)
    • tyk/gateway/middleware.go
    • Line 44: warning: exported var GlobalRate should have comment or be unexported (golint)
    • Line 48: warning: exported type TykMiddleware should have comment or be unexported (golint)
    • Line 60: warning: exported type TraceMiddleware should have comment or be unexported (golint)
    • Line 64: warning: error should be the last type when returning multiple items (golint)
    • Line 64: warning: exported method TraceMiddleware.ProcessRequest should have comment or be unexported (golint)
    • Line 206: warning: exported method BaseMiddleware.Base should have comment or be unexported (golint)
    • Line 208: warning: exported method BaseMiddleware.Logger should have comment or be unexported (golint)
    • Line 216: warning: exported method BaseMiddleware.SetName should have comment or be unexported (golint)
    • Line 220: warning: exported method BaseMiddleware.SetRequestLogger should have comment or be unexported (golint)
    • Line 224: warning: exported method BaseMiddleware.Init should have comment or be unexported (golint)
    • Line 225: warning: exported method BaseMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 228: warning: exported method BaseMiddleware.Config should have comment or be unexported (golint)
    • Line 232: warning: exported method BaseMiddleware.OrgSession should have comment or be unexported (golint)
    • Line 252: warning: exported method BaseMiddleware.SetOrgExpiry should have comment or be unexported (golint)
    • Line 256: warning: exported method BaseMiddleware.OrgSessionExpiry should have comment or be unexported (golint)
    • Line 277: warning: exported method BaseMiddleware.UpdateRequestSession should have comment or be unexported (golint)
    • Line 739: warning: receiver name b should be consistent with previous receiver name t for BaseMiddleware (golint)
    • Line 743: warning: receiver name b should be consistent with previous receiver name t for BaseMiddleware (golint)
    • Line 790: warning: exported type TykResponseHandler should have comment or be unexported (golint)
    • Line 797: warning: exported type TykGoPluginResponseHandler should have comment or be unexported (golint)
    • tyk/goplugin/no_goplugin.go
    • Line 10: warning: exported function GetHandler should have comment or be unexported (golint)
    • Line 14: warning: exported function GetResponseHandler should have comment or be unexported (golint)
    • tyk/dlpython/binding.go
    • Line 114: warning: exported function PyObject_GetAttr should have comment or be unexported (golint)
    • Line 114: warning: don't use underscores in Go names; func PyObject_GetAttr should be PyObjectGetAttr (golint)
    • Line 118: warning: exported function PyBytes_FromStringAndSize should have comment or be unexported (golint)
    • Line 118: warning: don't use underscores in Go names; func PyBytes_FromStringAndSize should be PyBytesFromStringAndSize (golint)
    • Line 122: warning: exported function PyBytes_AsString should have comment or be unexported (golint)
    • Line 122: warning: don't use underscores in Go names; func PyBytes_AsString should be PyBytesAsString (golint)
    • Line 126: warning: exported function PyUnicode_FromString should have comment or be unexported (golint)
    • Line 126: warning: don't use underscores in Go names; func PyUnicode_FromString should be PyUnicodeFromString (golint)
    • Line 130: warning: exported function PyLong_AsLong should have comment or be unexported (golint)
    • Line 130: warning: don't use underscores in Go names; func PyLong_AsLong should be PyLongAsLong (golint)
    • Line 134: warning: exported function PyTuple_New should have comment or be unexported (golint)
    • Line 134: warning: don't use underscores in Go names; func PyTuple_New should be PyTupleNew (golint)
    • Line 138: warning: exported function PyTuple_GetItem should have comment or be unexported (golint)
    • Line 138: warning: don't use underscores in Go names; func PyTuple_GetItem should be PyTupleGetItem (golint)
    • Line 142: warning: exported function PyTuple_SetItem should have comment or be unexported (golint)
    • Line 142: warning: don't use underscores in Go names; func PyTuple_SetItem should be PyTupleSetItem (golint)
    • Line 146: warning: exported function PyDict_GetItemString should have comment or be unexported (golint)
    • Line 146: warning: don't use underscores in Go names; func PyDict_GetItemString should be PyDictGetItemString (golint)
    • Line 150: warning: exported function PyModule_GetDict should have comment or be unexported (golint)
    • Line 150: warning: don't use underscores in Go names; func PyModule_GetDict should be PyModuleGetDict (golint)
    • Line 154: warning: exported function PyGILState_Ensure should have comment or be unexported (golint)
    • Line 154: warning: don't use underscores in Go names; func PyGILState_Ensure should be PyGILStateEnsure (golint)
    • Line 158: warning: exported function PyGILState_Release should have comment or be unexported (golint)
    • Line 158: warning: don't use underscores in Go names; func PyGILState_Release should be PyGILStateRelease (golint)
    • Line 162: warning: exported function PyRun_SimpleStringFlags should have comment or be unexported (golint)
    • Line 162: warning: don't use underscores in Go names; func PyRun_SimpleStringFlags should be PyRunSimpleStringFlags (golint)
    • Line 166: warning: exported function PyErr_Print should have comment or be unexported (golint)
    • Line 166: warning: don't use underscores in Go names; func PyErr_Print should be PyErrPrint (golint)
    • Line 170: warning: exported function Py_Initialize should have comment or be unexported (golint)
    • Line 170: warning: don't use underscores in Go names; func Py_Initialize should be PyInitialize (golint)
    • Line 174: warning: exported function Py_IsInitialized should have comment or be unexported (golint)
    • Line 174: warning: don't use underscores in Go names; func Py_IsInitialized should be PyIsInitialized (golint)
    • Line 178: warning: exported function PyEval_SaveThread should have comment or be unexported (golint)
    • Line 178: warning: don't use underscores in Go names; func PyEval_SaveThread should be PyEvalSaveThread (golint)
    • Line 182: warning: exported function PyEval_InitThreads should have comment or be unexported (golint)
    • Line 182: warning: don't use underscores in Go names; func PyEval_InitThreads should be PyEvalInitThreads (golint)
    • Line 186: warning: exported function PyImport_Import should have comment or be unexported (golint)
    • Line 186: warning: don't use underscores in Go names; func PyImport_Import should be PyImportImport (golint)
    • Line 190: warning: exported function PyObject_CallObject should have comment or be unexported (golint)
    • Line 190: warning: don't use underscores in Go names; func PyObject_CallObject should be PyObjectCallObject (golint)
    • Line 190: warning: don't use underscores in Go names; func parameter callable_object should be callableObject (golint)
    • Line 194: warning: exported function Py_IncRef should have comment or be unexported (golint)
    • Line 194: warning: don't use underscores in Go names; func Py_IncRef should be PyIncRef (golint)
    • Line 198: warning: exported function Py_DecRef should have comment or be unexported (golint)
    • Line 198: warning: don't use underscores in Go names; func Py_DecRef should be PyDecRef (golint)
    • Line 202: warning: exported function PyTuple_ClearFreeList should have comment or be unexported (golint)
    • Line 202: warning: don't use underscores in Go names; func PyTuple_ClearFreeList should be PyTupleClearFreeList (golint)
    • Line 211: warning: don't use underscores in Go names; var s_PyObject_GetAttr should be sPyObjectGetAttr (golint)
    • Line 215: warning: don't use underscores in Go names; var s_PyBytes_FromStringAndSize should be sPyBytesFromStringAndSize (golint)
    • Line 219: warning: don't use underscores in Go names; var s_PyBytes_AsString should be sPyBytesAsString (golint)
    • Line 223: warning: don't use underscores in Go names; var s_PyUnicode_FromString should be sPyUnicodeFromString (golint)
    • Line 227: warning: don't use underscores in Go names; var s_PyLong_AsLong should be sPyLongAsLong (golint)
    • Line 231: warning: don't use underscores in Go names; var s_PyTuple_New should be sPyTupleNew (golint)
    • Line 235: warning: don't use underscores in Go names; var s_PyTuple_GetItem should be sPyTupleGetItem (golint)
    • Line 239: warning: don't use underscores in Go names; var s_PyTuple_SetItem should be sPyTupleSetItem (golint)
    • Line 243: warning: don't use underscores in Go names; var s_PyDict_GetItemString should be sPyDictGetItemString (golint)
    • Line 247: warning: don't use underscores in Go names; var s_PyModule_GetDict should be sPyModuleGetDict (golint)
    • Line 251: warning: don't use underscores in Go names; var s_PyGILState_Ensure should be sPyGILStateEnsure (golint)
    • Line 255: warning: don't use underscores in Go names; var s_PyGILState_Release should be sPyGILStateRelease (golint)
    • Line 259: warning: don't use underscores in Go names; var s_PyRun_SimpleStringFlags should be sPyRunSimpleStringFlags (golint)
    • Line 263: warning: don't use underscores in Go names; var s_PyErr_Print should be sPyErrPrint (golint)
    • Line 267: warning: don't use underscores in Go names; var s_Py_Initialize should be sPyInitialize (golint)
    • Line 271: warning: don't use underscores in Go names; var s_Py_IsInitialized should be sPyIsInitialized (golint)
    • Line 275: warning: don't use underscores in Go names; var s_PyEval_SaveThread should be sPyEvalSaveThread (golint)
    • Line 279: warning: don't use underscores in Go names; var s_PyEval_InitThreads should be sPyEvalInitThreads (golint)
    • Line 283: warning: don't use underscores in Go names; var s_PyImport_Import should be sPyImportImport (golint)
    • Line 287: warning: don't use underscores in Go names; var s_PyObject_CallObject should be sPyObjectCallObject (golint)
    • Line 291: warning: don't use underscores in Go names; var s_Py_IncRef should be sPyIncRef (golint)
    • Line 295: warning: don't use underscores in Go names; var s_Py_DecRef should be sPyDecRef (golint)
    • Line 299: warning: don't use underscores in Go names; var s_PyTuple_ClearFreeList should be sPyTupleClearFreeList (golint)
    • Line 311: warning: exported function ToPyObject should have comment or be unexported (golint)
    • tyk/gateway/coprocess_events.go
    • Line 11: warning: comment on exported const EH_CoProcessHandler should be of the form "EH_CoProcessHandler ..." (golint)
    • Line 12: warning: don't use underscores in Go names; const EH_CoProcessHandler should be EHCoProcessHandler (golint)
    • Line 14: warning: exported type CoProcessEventHandler should have comment or be unexported (golint)
    • Line 20: warning: exported type CoProcessEventWrapper should have comment or be unexported (golint)
    • Line 26: warning: exported method CoProcessEventHandler.Init should have comment or be unexported (golint)
    • Line 44: warning: exported method CoProcessEventHandler.HandleEvent should have comment or be unexported (golint)
    • tyk/gateway/mw_api_rate_limit.go
    • Line 15: warning: comment on exported type RateLimitForAPI should be of the form "RateLimitForAPI ..." (with optional leading article) (golint)
    • Line 23: warning: exported method RateLimitForAPI.Name should have comment or be unexported (golint)
    • Line 27: warning: exported method RateLimitForAPI.EnabledForSpec should have comment or be unexported (golint)
    • Line 46: warning: error should be the last type when returning multiple items (golint)
    • Line 64: warning: error should be the last type when returning multiple items (golint)
    • tyk/signature_validator/hash.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type Hasher should have comment or be unexported (golint)
    • Line 14: warning: exported type MasherySha256Sum should have comment or be unexported (golint)
    • Line 16: warning: exported method MasherySha256Sum.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method MasherySha256Sum.Hash should have comment or be unexported (golint)
    • Line 26: warning: exported type MasheryMd5sum should have comment or be unexported (golint)
    • Line 28: warning: exported method MasheryMd5sum.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method MasheryMd5sum.Hash should have comment or be unexported (golint)
    • tyk/gateway/api_definition.go
    • Line 39: warning: comment on exported const SAFE_METHODS should be of the form "SAFE_METHODS ..." (golint)
    • Line 43: warning: exported const LDAPStorageEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 147: warning: exported type EndPointCacheMeta should have comment or be unexported (golint)
    • Line 153: warning: exported type TransformSpec should have comment or be unexported (golint)
    • Line 158: warning: exported type ExtendedCircuitBreakerMeta should have comment or be unexported (golint)
    • Line 251: warning: comment on exported var ServiceNonce should be of the form "ServiceNonce ..." (golint)
    • Line 440: warning: comment on exported method APIDefinitionLoader.FromRPC should be of the form "FromRPC ..." (golint)
    • Line 498: warning: exported method APIDefinitionLoader.ParseDefinition should have comment or be unexported (golint)
    • Line 1004: warning: exported method APISpec.Init should have comment or be unexported (golint)
    • Line 1004: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1010: warning: exported method APISpec.StopSessionManagerPool should have comment or be unexported (golint)
    • Line 1010: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1014: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1066: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1105: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1139: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1252: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1279: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1303: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1338: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1390: warning: exported method APISpec.StripListenPath should have comment or be unexported (golint)
    • Line 1390: warning: receiver name a should be consistent with previous receiver name s for APISpec (golint)
    • Line 1394: warning: exported type RoundRobin should have comment or be unexported (golint)
    • Line 1398: warning: exported method RoundRobin.WithLen should have comment or be unexported (golint)
    • tyk/gateway/event_system.go
    • Line 18: warning: comment on exported const EH_LogHandler should be of the form "EH_LogHandler ..." (golint)
    • Line 19: warning: don't use underscores in Go names; const EH_LogHandler should be EHLogHandler (golint)
    • Line 46: warning: exported type EventHostStatusMeta should have comment or be unexported (golint)
    • Line 77: warning: exported type EventTriggerExceededMeta should have comment or be unexported (golint)
    • Line 85: warning: exported type EventTokenMeta should have comment or be unexported (golint)
    • Line 155: warning: exported method APISpec.FireEvent should have comment or be unexported (golint)
    • Line 159: warning: exported function FireSystemEvent should have comment or be unexported (golint)
    • Line 169: warning: comment on exported method LogMessageEventHandler.Init should be of the form "Init ..." (golint)
    • tyk/gateway/instrumentation_statsd_sink.go
    • Line 12: warning: exported type StatsDSinkSanitizationFunc should have comment or be unexported (golint)
    • Line 25: warning: exported type StatsDSinkOptions should have comment or be unexported (golint)
    • Line 46: warning: exported type StatsDSink should have comment or be unexported (golint)
    • Line 92: warning: exported function NewStatsDSink should have comment or be unexported (golint)
    • Line 127: warning: exported method StatsDSink.Stop should have comment or be unexported (golint)
    • Line 132: warning: exported method StatsDSink.Drain should have comment or be unexported (golint)
    • Line 137: warning: exported method StatsDSink.EmitEvent should have comment or be unexported (golint)
    • Line 141: warning: exported method StatsDSink.EmitEventErr should have comment or be unexported (golint)
    • Line 145: warning: exported method StatsDSink.EmitTiming should have comment or be unexported (golint)
    • Line 149: warning: exported method StatsDSink.EmitGauge should have comment or be unexported (golint)
    • Line 153: warning: exported method StatsDSink.EmitComplete should have comment or be unexported (golint)
    • tyk/apidef/adapter/graphql_config_adapter.go
    • Line 17: warning: exported var ErrUnsupportedGraphQLConfigVersion should have comment or be unexported (golint)
    • Line 19: warning: exported type GraphQLConfigAdapter should have comment or be unexported (golint)
    • Line 25: warning: exported function NewGraphQLConfigAdapter should have comment or be unexported (golint)
    • Line 29: warning: exported method GraphQLConfigAdapter.EngineConfigV2 should have comment or be unexported (golint)
    • Line 183: warning: exported method GraphQLConfigAdapter.SetHttpClient should have comment or be unexported (golint)
    • tyk/gateway/mw_go_plugin.go
    • Line 91: warning: exported method GoPluginMiddleware.Name should have comment or be unexported (golint)
    • Line 95: warning: exported method GoPluginMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 149: warning: error should be the last type when returning multiple items (golint)
    • Line 149: warning: exported method GoPluginMiddleware.ProcessRequest should have comment or be unexported (golint)
    • tyk/gateway/mw_graphql.go
    • Line 23: warning: exported const HTTPJSONDataSource should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const GraphQLWebSocketProtocol should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type GraphQLMiddleware should have comment or be unexported (golint)
    • Line 38: warning: exported method GraphQLMiddleware.Name should have comment or be unexported (golint)
    • Line 42: warning: exported method GraphQLMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 46: warning: exported method GraphQLMiddleware.Init should have comment or be unexported (golint)
    • Line 161: warning: error should be the last type when returning multiple items (golint)
    • Line 161: warning: exported method GraphQLMiddleware.ProcessRequest should have comment or be unexported (golint)
    • Line 213: warning: error should be the last type when returning multiple items (golint)
    • Line 226: warning: exported method GraphQLMiddleware.OnBeforeFetch should have comment or be unexported (golint)
    • Line 235: warning: exported method GraphQLMiddleware.OnData should have comment or be unexported (golint)
    • Line 245: warning: exported method GraphQLMiddleware.OnError should have comment or be unexported (golint)
    • tyk/gateway/mw_organisation_activity.go
    • Line 22: warning: comment on exported type OrganizationMonitor should be of the form "OrganizationMonitor ..." (with optional leading article) (golint)
    • Line 30: warning: exported method OrganizationMonitor.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method OrganizationMonitor.EnabledForSpec should have comment or be unexported (golint)
    • Line 52: warning: error should be the last type when returning multiple items (golint)
    • Line 52: warning: exported method OrganizationMonitor.ProcessRequest should have comment or be unexported (golint)
    • Line 95: warning: comment on exported method OrganizationMonitor.ProcessRequestLive should be of the form "ProcessRequestLive ..." (golint)
    • Line 96: warning: error should be the last type when returning multiple items (golint)
    • Line 181: warning: exported method OrganizationMonitor.SetOrgSentinel should have comment or be unexported (golint)
    • Line 188: warning: error should be the last type when returning multiple items (golint)
    • Line 188: warning: exported method OrganizationMonitor.ProcessRequestOffThread should have comment or be unexported (golint)
    • Line 223: warning: exported method OrganizationMonitor.AllowAccessNext should have comment or be unexported (golint)
    • tyk/gateway/rpc_backup_handlers.go
    • Line 20: warning: exported const RPCKeyPrefix should have comment or be unexported (golint)
    • Line 21: warning: exported const BackupApiKeyBase should have comment or be unexported (golint)
    • Line 22: warning: exported const BackupPolicyKeyBase should have comment or be unexported (golint)
    • Line 33: warning: exported function LoadDefinitionsFromRPCBackup should have comment or be unexported (golint)
    • Line 86: warning: exported function LoadPoliciesFromRPCBackup should have comment or be unexported (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • tyk/trace/jaeger/jaeger.go
    • Line 13: warning: exported type Trace should have comment or be unexported (golint)
    • Line 18: warning: exported method Trace.Name should have comment or be unexported (golint)
    • Line 22: warning: exported type Logger should have comment or be unexported (golint)
    • tyk/test/http.go
    • Line 18: warning: exported type TestCase should have comment or be unexported (golint)
    • Line 48: warning: exported function AssertResponse should have comment or be unexported (golint)
    • Line 107: warning: exported function ReqBodyReader should have comment or be unexported (golint)
    • Line 126: warning: exported function NewRequest should have comment or be unexported (golint)
    • Line 226: warning: exported type HTTPTestRunner should have comment or be unexported (golint)
    • Line 249: warning: exported method HTTPTestRunner.Run should have comment or be unexported (golint)
    • Line 313: warning: exported function HttpHandlerRunner should have comment or be unexported (golint)
    • Line 321: warning: exported function TestHttpHandler should have comment or be unexported (golint)
    • Line 328: warning: exported function HttpServerRequestBuilder should have comment or be unexported (golint)
    • Line 335: warning: exported function HttpServerRunner should have comment or be unexported (golint)
    • Line 341: warning: exported function TestHttpServer should have comment or be unexported (golint)
    • tyk/gateway/auth_manager.go
    • Line 30: warning: exported type DefaultSessionManager should have comment or be unexported (golint)
    • Line 35: warning: exported method DefaultSessionManager.Init should have comment or be unexported (golint)
    • Line 48: warning: exported method DefaultSessionManager.Store should have comment or be unexported (golint)
    • Line 52: warning: exported method DefaultSessionManager.ResetQuota should have comment or be unexported (golint)
    • Line 123: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 180: warning: exported method DefaultSessionManager.Stop should have comment or be unexported (golint)
    • Line 187: warning: exported type DefaultKeyGenerator should have comment or be unexported (golint)
    • tyk/dnscache/manager.go
    • Line 21: warning: exported type DialContextFunc should have comment or be unexported (golint)
    • Line 57: warning: exported method DnsCacheManager.SetCacheStorage should have comment or be unexported (golint)
    • Line 61: warning: exported method DnsCacheManager.CacheStorage should have comment or be unexported (golint)
    • Line 65: warning: exported method DnsCacheManager.IsCacheEnabled should have comment or be unexported (golint)
    • Line 79: warning: context.Context should be the first parameter of a function (golint)
    • tyk/gateway/mw_auth_key.go
    • Line 24: warning: exported const ErrAuthAuthorizationFieldMissing should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: comment on exported type AuthKey should be of the form "AuthKey ..." (with optional leading article) (golint)
    • Line 62: warning: exported method AuthKey.Name should have comment or be unexported (golint)
    • Line 83: warning: error should be the last type when returning multiple items (golint)
    • Line 83: warning: exported method AuthKey.ProcessRequest should have comment or be unexported (golint)
    • Line 134: warning: error should be the last type when returning multiple items (golint)
    • Line 146: warning: error should be the last type when returning multiple items (golint)
    • Line 198: warning: comment on exported function AuthFailed should be of the form "AuthFailed ..." (golint)
    • tyk/gateway/mw_openid.go
    • Line 19: warning: exported const OIDPREFIX should have comment or be unexported (golint)
    • Line 21: warning: exported type OpenIDMW should have comment or be unexported (golint)
    • Line 24: warning: don't use underscores in Go names; struct field provider_client_policymap should be providerClientPolicymap (golint)
    • Line 28: warning: exported method OpenIDMW.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method OpenIDMW.EnabledForSpec should have comment or be unexported (golint)
    • Line 36: warning: exported method OpenIDMW.Init should have comment or be unexported (golint)
    • Line 98: warning: error should be the last type when returning multiple items (golint)
    • Line 98: warning: exported method OpenIDMW.ProcessRequest should have comment or be unexported (golint)
    • tyk/gateway/mw_track_endpoints.go
    • Line 14: warning: exported method TrackEndpointMiddleware.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method TrackEndpointMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 33: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/handler_error.go
    • Line 27: warning: exported const MsgAuthFieldMissing should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported var TykErrors should have comment or be unexported (golint)
    • Line 38: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/host_checker.go
    • Line 29: warning: exported var HostCheckerClient should have comment or be unexported (golint)
    • Line 36: warning: exported type HostData should have comment or be unexported (golint)
    • Line 48: warning: exported type HostHealthReport should have comment or be unexported (golint)
    • Line 55: warning: exported type HostUptimeChecker should have comment or be unexported (golint)
    • Line 101: warning: exported method HostUptimeChecker.HostCheckLoop should have comment or be unexported (golint)
    • Line 145: warning: exported method HostUptimeChecker.HostReporter should have comment or be unexported (golint)
    • Line 204: warning: exported method HostUptimeChecker.CheckHost should have comment or be unexported (golint)
    • Line 332: warning: exported method HostUptimeChecker.Init should have comment or be unexported (golint)
    • Line 373: warning: exported method HostUptimeChecker.Start should have comment or be unexported (golint)
    • Line 383: warning: exported method HostUptimeChecker.Stop should have comment or be unexported (golint)
    • Line 391: warning: exported method HostUptimeChecker.ResetList should have comment or be unexported (golint)
    • tyk/gateway/multiauth_test.go
    • Line 177: warning: don't use underscores in Go names; var to_encode should be toEncode (golint)
    • Line 214: warning: don't use underscores in Go names; var to_encode should be toEncode (golint)
    • Line 246: warning: don't use underscores in Go names; var to_encode should be toEncode (golint)
    • tyk/gateway/mw_graphql_granular_access.go
    • Line 12: warning: exported type GraphQLGranularAccessMiddleware should have comment or be unexported (golint)
    • Line 16: warning: exported method GraphQLGranularAccessMiddleware.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method GraphQLGranularAccessMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 25: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/mw_js_plugin.go
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 27: warning: comment on exported type ReturnOverrides should be of the form "ReturnOverrides ..." (with optional leading article) (golint)
    • Line 54: warning: exported method MiniRequestObject.ReconstructParams should have comment or be unexported (golint)
    • Line 76: warning: exported type VMReturnObject should have comment or be unexported (golint)
    • Line 92: warning: exported method DynamicMiddleware.Name should have comment or be unexported (golint)
    • Line 113: warning: error should be the last type when returning multiple items (golint)
    • Line 311: warning: exported type JSVM should have comment or be unexported (golint)
    • Line 388: warning: exported type TykJSHttpRequest should have comment or be unexported (golint)
    • Line 397: warning: exported type TykJSHttpResponse should have comment or be unexported (golint)
    • Line 408: warning: exported method JSVM.LoadTykJSApi should have comment or be unexported (golint)
    • tyk/apidef/importer/swagger.go
    • Line 14: warning: exported const SwaggerSource should have comment or be unexported (golint)
    • Line 16: warning: exported type DefinitionObjectFormatAST should have comment or be unexported (golint)
    • Line 21: warning: exported type DefinitionObjectAST should have comment or be unexported (golint)
    • Line 27: warning: exported type ResponseCodeObjectAST should have comment or be unexported (golint)
    • Line 35: warning: exported type PathMethodObject should have comment or be unexported (golint)
    • Line 41: warning: exported type PathItemObject should have comment or be unexported (golint)
    • Line 51: warning: exported type SwaggerAST should have comment or be unexported (golint)
    • Line 77: warning: exported method SwaggerAST.LoadFrom should have comment or be unexported (golint)
    • Line 81: warning: exported method SwaggerAST.ConvertIntoApiVersion should have comment or be unexported (golint)
    • Line 123: warning: exported method SwaggerAST.InsertIntoAPIDefinitionAsVersion should have comment or be unexported (golint)
    • Line 129: warning: exported method SwaggerAST.ToAPIDefinition should have comment or be unexported (golint)
    • Line 129: warning: don't use underscores in Go names; method parameter as_mock should be asMock (golint)
    • tyk/gateway/api_healthcheck.go
    • Line 12: warning: exported type HealthPrefix should have comment or be unexported (golint)
    • Line 15: warning: exported const Throttle should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type HealthChecker should have comment or be unexported (golint)
    • Line 28: warning: exported type HealthCheckValues should have comment or be unexported (golint)
    • Line 36: warning: exported type DefaultHealthChecker should have comment or be unexported (golint)
    • Line 41: warning: exported method DefaultHealthChecker.Init should have comment or be unexported (golint)
    • Line 51: warning: exported method DefaultHealthChecker.CreateKeyName should have comment or be unexported (golint)
    • Line 65: warning: exported method DefaultHealthChecker.StoreCounterVal should have comment or be unexported (golint)
    • Line 72: warning: don't use underscores in Go names; var now_string should be nowString (golint)
    • Line 101: warning: exported method DefaultHealthChecker.ApiHealthValues should have comment or be unexported (golint)
    • tyk/gateway/mw_context_vars.go
    • Line 12: warning: exported type MiddlewareContextVars should have comment or be unexported (golint)
    • Line 16: warning: exported method MiddlewareContextVars.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method MiddlewareContextVars.EnabledForSpec should have comment or be unexported (golint)
    • Line 25: warning: error should be the last type when returning multiple items (golint)
    • tyk/apidef/importer/importer.go
    • Line 13: warning: exported type APIImporter should have comment or be unexported (golint)
    • Line 20: warning: exported type APIImporterSource should have comment or be unexported (golint)
    • Line 22: warning: exported function GetImporterForSource should have comment or be unexported (golint)
    • tyk/gateway/dashboard_register.go
    • Line 18: warning: exported type NodeResponseOK should have comment or be unexported (golint)
    • Line 24: warning: exported type DashboardServiceSender should have comment or be unexported (golint)
    • Line 34: warning: exported type HTTPDashboardHandler should have comment or be unexported (golint)
    • Line 91: warning: exported method HTTPDashboardHandler.Init should have comment or be unexported (golint)
    • Line 154: warning: exported method HTTPDashboardHandler.Register should have comment or be unexported (golint)
    • Line 195: warning: exported method HTTPDashboardHandler.Ping should have comment or be unexported (golint)
    • Line 201: warning: exported method HTTPDashboardHandler.StartBeating should have comment or be unexported (golint)
    • Line 219: warning: exported method HTTPDashboardHandler.StopBeating should have comment or be unexported (golint)
    • Line 263: warning: exported method HTTPDashboardHandler.DeRegister should have comment or be unexported (golint)
    • tyk/gateway/health_check.go
    • Line 21: warning: exported type HealthCheckStatus should have comment or be unexported (golint)
    • Line 23: warning: exported type HealthCheckComponentType should have comment or be unexported (golint)
    • Line 27: warning: exported const Pass should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported type HealthCheckResponse should have comment or be unexported (golint)
    • Line 62: warning: exported type HealthCheckItem should have comment or be unexported (golint)
    • Line 99: warning: exported type SafeHealthCheck should have comment or be unexported (golint)
    • tyk/gateway/mw_certificate_check.go
    • Line 12: warning: exported method CertificateCheckMW.Name should have comment or be unexported (golint)
    • Line 16: warning: exported method CertificateCheckMW.EnabledForSpec should have comment or be unexported (golint)
    • Line 20: warning: error should be the last type when returning multiple items (golint)
    • Line 20: warning: exported method CertificateCheckMW.ProcessRequest should have comment or be unexported (golint)
    • tyk/gateway/mw_ip_whitelist.go
    • Line 16: warning: exported method IPWhiteListMiddleware.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method IPWhiteListMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 25: warning: error should be the last type when returning multiple items (golint)
    • tyk/apidef/validator.go
    • Line 8: warning: exported type ValidationResult should have comment or be unexported (golint)
    • Line 13: warning: exported method ValidationResult.AppendError should have comment or be unexported (golint)
    • Line 17: warning: exported method ValidationResult.HasErrors should have comment or be unexported (golint)
    • Line 21: warning: exported method ValidationResult.FirstError should have comment or be unexported (golint)
    • Line 29: warning: exported method ValidationResult.ErrorAt should have comment or be unexported (golint)
    • Line 37: warning: exported method ValidationResult.ErrorCount should have comment or be unexported (golint)
    • Line 41: warning: exported method ValidationResult.ErrorStrings should have comment or be unexported (golint)
    • Line 50: warning: exported type ValidationRuleSet should have comment or be unexported (golint)
    • Line 52: warning: exported var DefaultValidationRuleSet should have comment or be unexported (golint)
    • Line 56: warning: exported function Validate should have comment or be unexported (golint)
    • Line 69: warning: exported type ValidationRule should have comment or be unexported (golint)
    • Line 73: warning: exported var ErrDuplicateDataSourceName should have comment or be unexported (golint)
    • Line 75: warning: exported type RuleUniqueDataSourceNames should have comment or be unexported (golint)
    • Line 77: warning: exported method RuleUniqueDataSourceNames.Validate should have comment or be unexported (golint)
    • tyk/gateway/le_helpers.go
    • Line 15: warning: exported const LEKeyPrefix should have comment or be unexported (golint)
    • Line 17: warning: exported function StoreLEState should have comment or be unexported (golint)
    • Line 42: warning: exported function GetLEState should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; type LE_ServerInfo should be LEServerInfo (golint)
    • Line 67: warning: exported type LE_ServerInfo should have comment or be unexported (golint)
    • Line 93: warning: exported function StartPeriodicStateBackup should have comment or be unexported (golint)
    • tyk/gateway/redis_signals.go
    • Line 21: warning: exported type NotificationCommand should have comment or be unexported (golint)
    • Line 24: warning: exported const RedisPubSubChannel should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported method Notification.Sign should have comment or be unexported (golint)
    • Line 157: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tyk/rpc/rpc_analytics_purger.go
    • Line 16: warning: exported type AnalyticsRecord should have comment or be unexported (golint)
    • Line 44: warning: exported type GeoData should have comment or be unexported (golint)
    • Line 61: warning: exported const ANALYTICS_KEYNAME should have comment or be unexported (golint)
    • Line 63: warning: comment on exported type Purger should be of the form "Purger ..." (with optional leading article) (golint)
    • tyk/apidef/rpc.go
    • Line 3: warning: exported type InboundData should have comment or be unexported (golint)
    • Line 12: warning: exported type DefRequest should have comment or be unexported (golint)
    • Line 17: warning: exported type GroupLoginRequest should have comment or be unexported (golint)
    • Line 22: warning: exported type GroupKeySpaceRequest should have comment or be unexported (golint)
    • Line 27: warning: exported type KeysValuesPair should have comment or be unexported (golint)
    • tyk/storage/storage.go
    • Line 62: warning: exported type AnalyticsHandler should have comment or be unexported (golint)
    • Line 72: warning: comment on exported function GenerateToken should be of the form "GenerateToken ..." (golint)
    • Line 92: warning: comment on exported const B64JSONPrefix should be of the form "B64JSONPrefix ..." (golint)
    • Line 95: warning: exported function TokenHashAlgo should have comment or be unexported (golint)
    • Line 107: warning: exported function TokenOrg should have comment or be unexported (golint)
    • Line 126: warning: exported var HashSha256 should have comment or be unexported (golint)
    • Line 147: warning: exported function HashStr should have comment or be unexported (golint)
    • Line 160: warning: exported function HashKey should have comment or be unexported (golint)
    • tyk/trace/trace.go
    • Line 14: warning: exported type Tracer should have comment or be unexported (golint)
    • Line 30: warning: exported method NoopTracer.Name should have comment or be unexported (golint)
    • tyk/gateway/coprocess.go
    • Line 41: warning: exported method CoProcessMiddleware.Name should have comment or be unexported (golint)
    • Line 58: warning: exported function DoCoprocessReload should have comment or be unexported (golint)
    • Line 296: warning: error should be the last type when returning multiple items (golint)
    • Line 359: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 490: warning: exported type CustomMiddlewareResponseHook should have comment or be unexported (golint)
    • Line 494: warning: exported method CustomMiddlewareResponseHook.Init should have comment or be unexported (golint)
    • Line 513: warning: exported method CustomMiddlewareResponseHook.Name should have comment or be unexported (golint)
    • Line 517: warning: exported method CustomMiddlewareResponseHook.HandleError should have comment or be unexported (golint)
    • Line 522: warning: exported method CustomMiddlewareResponseHook.HandleResponse should have comment or be unexported (golint)
    • Line 562: warning: exported method CoProcessor.Dispatch should have comment or be unexported (golint)
    • tyk/gateway/handler_success.go
    • Line 29: warning: comment on exported var SessionCache should be of the form "SessionCache ..." (golint)
    • Line 32: warning: comment on exported var ExpiryCache should be of the form "ExpiryCache ..." (golint)
    • Line 35: warning: comment on exported var UtilCache should be of the form "UtilCache ..." (golint)
    • Line 39: warning: exported type ProxyResponse should have comment or be unexported (golint)
    • Line 46: warning: exported type ReturningHttpHandler should have comment or be unexported (golint)
    • Line 131: warning: exported method SuccessHandler.RecordHit should have comment or be unexported (golint)
    • tyk/gateway/mw_jwt.go
    • Line 29: warning: exported type JWTMiddleware should have comment or be unexported (golint)
    • Line 34: warning: exported const KID should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported method JWTMiddleware.Name should have comment or be unexported (golint)
    • Line 54: warning: exported method JWTMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 58: warning: exported var JWKCache should have comment or be unexported (golint)
    • Line 60: warning: exported type JWK should have comment or be unexported (golint)
    • Line 71: warning: exported type JWKs should have comment or be unexported (golint)
    • Line 367: warning: error should be the last type when returning multiple items (golint)
    • Line 402: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 451: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 631: warning: error should be the last type when returning multiple items (golint)
    • Line 657: warning: error should be the last type when returning multiple items (golint)
    • Line 657: warning: exported method JWTMiddleware.ProcessRequest should have comment or be unexported (golint)
    • Line 759: warning: exported function ParseRSAPublicKey should have comment or be unexported (golint)
    • tyk/gateway/mw_modify_headers.go
    • Line 10: warning: comment on exported type TransformHeaders should be of the form "TransformHeaders ..." (with optional leading article) (golint)
    • Line 15: warning: exported method TransformHeaders.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method TransformHeaders.EnabledForSpec should have comment or be unexported (golint)
    • Line 31: warning: error should be the last type when returning multiple items (golint)
    • tyk/apidef/host_list.go
    • Line 8: warning: exported type HostList should have comment or be unexported (golint)
    • Line 13: warning: exported function NewHostList should have comment or be unexported (golint)
    • Line 19: warning: exported function NewHostListFromList should have comment or be unexported (golint)
    • Line 25: warning: exported method HostList.Set should have comment or be unexported (golint)
    • Line 32: warning: exported method HostList.All should have comment or be unexported (golint)
    • Line 36: warning: exported method HostList.GetIndex should have comment or be unexported (golint)
    • Line 50: warning: exported method HostList.Len should have comment or be unexported (golint)
    • tyk/gateway/mw_validate_json.go
    • Line 13: warning: exported type ValidateJSON should have comment or be unexported (golint)
    • Line 17: warning: exported method ValidateJSON.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method ValidateJSON.EnabledForSpec should have comment or be unexported (golint)
    • Line 32: warning: error should be the last type when returning multiple items (golint)
    • tyk/storage/redis_cluster.go
    • Line 70: warning: exported function WaitConnect should have comment or be unexported (golint)
    • Line 204: warning: exported function NewRedisClusterPool should have comment or be unexported (golint)
    • Line 389: warning: exported method RedisCluster.GetKeyTTL should have comment or be unexported (golint)
    • Line 397: warning: exported method RedisCluster.GetRawKey should have comment or be unexported (golint)
    • Line 410: warning: exported method RedisCluster.GetExp should have comment or be unexported (golint)
    • Line 429: warning: exported method RedisCluster.SetExp should have comment or be unexported (golint)
    • Line 456: warning: exported method RedisCluster.SetRawKey should have comment or be unexported (golint)
    • Line 482: warning: comment on exported method RedisCluster.IncrememntWithExpire should be of the form "IncrememntWithExpire ..." (golint)
    • Line 683: warning: comment on exported method RedisCluster.DeleteRawKey should be of the form "DeleteRawKey ..." (golint)
    • Line 697: warning: comment on exported method RedisCluster.DeleteScanMatch should be of the form "DeleteScanMatch ..." (golint)
    • Line 842: warning: exported method RedisCluster.Publish should have comment or be unexported (golint)
    • Line 854: warning: exported method RedisCluster.GetAndDeleteSet should have comment or be unexported (golint)
    • Line 892: warning: exported method RedisCluster.AppendToSet should have comment or be unexported (golint)
    • Line 959: warning: exported method RedisCluster.AppendToSetPipelined should have comment or be unexported (golint)
    • Line 981: warning: exported method RedisCluster.GetSet should have comment or be unexported (golint)
    • Line 1001: warning: exported method RedisCluster.AddToSet should have comment or be unexported (golint)
    • Line 1014: warning: exported method RedisCluster.RemoveFromSet should have comment or be unexported (golint)
    • Line 1027: warning: exported method RedisCluster.IsMemberOfSet should have comment or be unexported (golint)
    • Line 1045: warning: don't use underscores in Go names; method parameter value_override should be valueOverride (golint)
    • Line 1111: warning: exported method RedisCluster.GetRollingWindow should have comment or be unexported (golint)
    • Line 1158: warning: comment on exported method RedisCluster.GetKeyPrefix should be of the form "GetKeyPrefix ..." (golint)
    • tyk/gateway/batch_requests.go
    • Line 87: warning: exported method BatchRequestHandler.DecodeBatchRequest should have comment or be unexported (golint)
    • Line 93: warning: exported method BatchRequestHandler.ConstructRequests should have comment or be unexported (golint)
    • Line 123: warning: exported method BatchRequestHandler.MakeRequests should have comment or be unexported (golint)
    • Line 180: warning: comment on exported method BatchRequestHandler.ManualBatchRequest should be of the form "ManualBatchRequest ..." (golint)
    • tyk/gateway/cert.go
    • Line 24: warning: exported type APICertificateStatusMessage should have comment or be unexported (golint)
    • Line 30: warning: exported type APIAllCertificates should have comment or be unexported (golint)
    • Line 452: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tyk/dlpython/helpers.go
    • Line 168: warning: exported function PyIncRef should have comment or be unexported (golint)
    • Line 172: warning: exported function PyDecRef should have comment or be unexported (golint)
    • Line 176: warning: exported function PyTupleClearFreeList should have comment or be unexported (golint)
    • tyk/gateway/policy.go
    • Line 19: warning: exported type DBAccessDefinition should have comment or be unexported (golint)
    • Line 29: warning: exported method DBAccessDefinition.ToRegularAD should have comment or be unexported (golint)
    • Line 41: warning: exported type DBPolicy should have comment or be unexported (golint)
    • Line 46: warning: exported method DBPolicy.ToRegularPolicy should have comment or be unexported (golint)
    • Line 56: warning: exported function LoadPoliciesFromFile should have comment or be unexported (golint)
    • Line 166: warning: exported function LoadPoliciesFromRPC should have comment or be unexported (golint)
    • tyk/gateway/session_manager.go
    • Line 17: warning: exported type PublicSession should have comment or be unexported (golint)
    • Line 30: warning: exported const QuotaKeyPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 245: warning: exported method SessionLimiter.RedisQuotaExceeded should have comment or be unexported (golint)
    • Line 323: warning: exported function GetAccessDefinitionByAPIIDOrSession should have comment or be unexported (golint)
    • Line 328: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • tyk/trace/manager.go
    • Line 57: warning: exported type StdLogger should have comment or be unexported (golint)
    • Line 59: warning: exported method StdLogger.Errorf should have comment or be unexported (golint)
    • Line 62: warning: exported method StdLogger.Infof should have comment or be unexported (golint)
    • Line 66: warning: exported method StdLogger.Info should have comment or be unexported (golint)
    • Line 74: warning: exported type Config should have comment or be unexported (golint)
    • Line 138: warning: exported function SetLogger should have comment or be unexported (golint)
    • Line 142: warning: exported function SetInit should have comment or be unexported (golint)
    • Line 146: warning: exported function SetupTracing should have comment or be unexported (golint)
    • Line 156: warning: exported function Root should have comment or be unexported (golint)
    • Line 193: warning: exported function Extract should have comment or be unexported (golint)
    • Line 200: warning: exported function ExtractFromContext should have comment or be unexported (golint)
    • Line 204: warning: exported function Inject should have comment or be unexported (golint)
    • Line 213: warning: exported function InjectFromContext should have comment or be unexported (golint)
    • tyk/test/dns.go
    • Line 20: warning: exported var DomainsToAddresses should have comment or be unexported (golint)
    • Line 108: warning: exported type DnsMockHandle should have comment or be unexported (golint)
    • Line 114: warning: exported method DnsMockHandle.PushDomains should have comment or be unexported (golint)
    • Line 230: warning: exported function IsDnsRecordsAddrsEqualsTo should have comment or be unexported (golint)
    • tyk/gateway/version.go
    • Line 3: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 4: warning: exported var Commit should have its own declaration (golint)
    • tyk/gateway/multi_target_proxy_handler.go
    • Line 11: warning: exported type MultiTargetProxy should have comment or be unexported (golint)
    • Line 35: warning: exported method MultiTargetProxy.ServeHTTPForCache should have comment or be unexported (golint)
    • Line 39: warning: exported method MultiTargetProxy.CopyResponse should have comment or be unexported (golint)
    • Line 43: warning: exported function NewMultiTargetProxy should have comment or be unexported (golint)
    • tyk/gateway/mw_request_size_limit.go
    • Line 14: warning: comment on exported type RequestSizeLimitMiddleware should be of the form "RequestSizeLimitMiddleware ..." (with optional leading article) (golint)
    • Line 19: warning: exported method RequestSizeLimitMiddleware.Name should have comment or be unexported (golint)
    • Line 23: warning: exported method RequestSizeLimitMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 32: warning: error should be the last type when returning multiple items (golint)
    • Line 57: warning: comment on exported method RequestSizeLimitMiddleware.ProcessRequest should be of the form "ProcessRequest ..." (golint)
    • Line 58: warning: error should be the last type when returning multiple items (golint)
    • tyk/apidef/importer/wsdl.go
    • Line 14: warning: exported const WSDLSource should have comment or be unexported (golint)
    • Line 19: warning: exported method WSDLDef.SetServicePortMapping should have comment or be unexported (golint)
    • Line 26: warning: exported const NS_WSDL20 should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const PROT_HTTP should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type WSDLDef should have comment or be unexported (golint)
    • Line 43: warning: exported type WSDL should have comment or be unexported (golint)
    • Line 48: warning: exported type WSDLService should have comment or be unexported (golint)
    • Line 53: warning: exported type WSDLPort should have comment or be unexported (golint)
    • Line 59: warning: exported type WSDLAddress should have comment or be unexported (golint)
    • Line 63: warning: exported type WSDLBinding should have comment or be unexported (golint)
    • Line 71: warning: exported type WSDLOperation should have comment or be unexported (golint)
    • Line 77: warning: exported method WSDLDef.UnmarshalXML should have comment or be unexported (golint)
    • Line 87: warning: exported method WSDLBinding.UnmarshalXML should have comment or be unexported (golint)
    • Line 193: warning: exported method WSDLOperation.UnmarshalXML should have comment or be unexported (golint)
    • Line 249: warning: don't use underscores in Go names; var new_endpoint should be newEndpoint (golint)
    • Line 271: warning: exported method WSDLDef.LoadFrom should have comment or be unexported (golint)
    • Line 271: warning: receiver name s should be consistent with previous receiver name def for WSDLDef (golint)
    • Line 275: warning: exported method WSDLDef.ToAPIDefinition should have comment or be unexported (golint)
    • Line 275: warning: don't use underscores in Go names; method parameter as_mock should be asMock (golint)
    • Line 309: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 314: warning: exported method WSDLDef.ConvertIntoApiVersion should have comment or be unexported (golint)
    • Line 420: warning: exported method WSDLDef.InsertIntoAPIDefinitionAsVersion should have comment or be unexported (golint)
    • Line 426: warning: exported function ReplaceWildCards should have comment or be unexported (golint)
    • tyk/gateway/mw_strip_auth.go
    • Line 13: warning: exported type StripAuth should have comment or be unexported (golint)
    • Line 17: warning: exported method StripAuth.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method StripAuth.EnabledForSpec should have comment or be unexported (golint)
    • Line 25: warning: error should be the last type when returning multiple items (golint)
    • Line 25: warning: exported method StripAuth.ProcessRequest should have comment or be unexported (golint)
    • tyk/gateway/mw_url_rewrite.go
    • Line 379: warning: exported method URLRewriteMiddleware.Name should have comment or be unexported (golint)
    • Line 383: warning: exported method URLRewriteMiddleware.InitTriggerRx should have comment or be unexported (golint)
    • Line 424: warning: exported method URLRewriteMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 435: warning: exported method URLRewriteMiddleware.CheckHostRewrite should have comment or be unexported (golint)
    • Line 444: warning: exported const LoopScheme should have comment or be unexported (golint)
    • Line 446: warning: exported var NonAlphaNumRE should have comment or be unexported (golint)
    • Line 447: warning: exported var LoopHostRE should have comment or be unexported (golint)
    • Line 454: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/mw_version_check.go
    • Line 18: warning: exported method VersionCheck.Init should have comment or be unexported (golint)
    • Line 22: warning: exported method VersionCheck.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method VersionCheck.DoMockReply should have comment or be unexported (golint)
    • Line 39: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/mw_virtual_endpoint.go
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 38: warning: exported type ResponseObject should have comment or be unexported (golint)
    • Line 44: warning: exported type VMResponseObject should have comment or be unexported (golint)
    • Line 49: warning: comment on exported type VirtualEndpoint should be of the form "VirtualEndpoint ..." (with optional leading article) (golint)
    • Line 55: warning: exported method VirtualEndpoint.Name should have comment or be unexported (golint)
    • Line 93: warning: exported method VirtualEndpoint.Init should have comment or be unexported (golint)
    • Line 97: warning: exported method VirtualEndpoint.EnabledForSpec should have comment or be unexported (golint)
    • Line 124: warning: exported method VirtualEndpoint.ServeHTTPForCache should have comment or be unexported (golint)
    • Line 302: warning: error should be the last type when returning multiple items (golint)
    • Line 312: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 320: warning: exported method VirtualEndpoint.HandleResponse should have comment or be unexported (golint)
    • tyk/gateway/res_handler_go_plugin.go
    • Line 15: warning: exported type ResponseGoPluginMiddleware should have comment or be unexported (golint)
    • Line 23: warning: exported method ResponseGoPluginMiddleware.Name should have comment or be unexported (golint)
    • Line 27: warning: exported method ResponseGoPluginMiddleware.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method ResponseGoPluginMiddleware.HandleError should have comment or be unexported (golint)
    • Line 58: warning: exported method ResponseGoPluginMiddleware.HandleResponse should have comment or be unexported (golint)
    • Line 67: warning: exported method ResponseGoPluginMiddleware.HandleGoPluginResponse should have comment or be unexported (golint)
    • tyk/gateway/reverse_proxy.go
    • Line 64: warning: exported var ServiceCache should have comment or be unexported (golint)
    • Line 128: warning: exported function EnsureTransport should have comment or be unexported (golint)
    • Line 506: warning: exported method ReverseProxy.ServeHTTPForCache should have comment or be unexported (golint)
    • Line 518: warning: exported method ReverseProxy.CheckHardTimeoutEnforced should have comment or be unexported (golint)
    • Line 534: warning: exported method ReverseProxy.CheckHeaderInRemoveList should have comment or be unexported (golint)
    • Line 555: warning: exported method ReverseProxy.CheckCircuitBreakerEnforced should have comment or be unexported (golint)
    • Line 750: warning: exported type TykRoundTripper should have comment or be unexported (golint)
    • Line 756: warning: exported method TykRoundTripper.RoundTrip should have comment or be unexported (golint)
    • Line 923: warning: exported method ReverseProxy.WrappedServeHTTP should have comment or be unexported (golint)
    • Line 1200: warning: exported method ReverseProxy.HandleResponse should have comment or be unexported (golint)
    • Line 1269: warning: exported method ReverseProxy.CopyResponse should have comment or be unexported (golint)
    • Line 1510: warning: exported function IsUpgrade should have comment or be unexported (golint)
    • tyk/dnscache/mock_storage.go
    • Line 3: warning: exported type MockStorage should have comment or be unexported (golint)
    • Line 11: warning: exported method MockStorage.FetchItem should have comment or be unexported (golint)
    • Line 15: warning: exported method MockStorage.Get should have comment or be unexported (golint)
    • Line 19: warning: exported method MockStorage.Set should have comment or be unexported (golint)
    • Line 23: warning: exported method MockStorage.Delete should have comment or be unexported (golint)
    • Line 27: warning: exported method MockStorage.Clear should have comment or be unexported (golint)
    • tyk/test/goplugins/test_goplugin.go
    • Line 102: warning: exported function MyPluginPerPathFoo should have comment or be unexported (golint)
    • Line 108: warning: exported function MyPluginPerPathBar should have comment or be unexported (golint)
    • Line 113: warning: exported function MyPluginPerPathResp should have comment or be unexported (golint)
    • tyk/gateway/mw_rate_check.go
    • Line 7: warning: exported type RateCheckMW should have comment or be unexported (golint)
    • Line 11: warning: exported method RateCheckMW.Name should have comment or be unexported (golint)
    • Line 15: warning: error should be the last type when returning multiple items (golint)
    • Line 15: warning: exported method RateCheckMW.ProcessRequest should have comment or be unexported (golint)
    • tyk/gateway/mw_request_signing.go
    • Line 18: warning: exported type RequestSigning should have comment or be unexported (golint)
    • Line 22: warning: exported method RequestSigning.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method RequestSigning.EnabledForSpec should have comment or be unexported (golint)
    • Line 95: warning: error should be the last type when returning multiple items (golint)
    • Line 95: warning: exported method RequestSigning.ProcessRequest should have comment or be unexported (golint)
    • tyk/dnscache/storage.go
    • Line 23: warning: exported function NewDnsCacheStorage should have comment or be unexported (golint)
    • Line 53: warning: exported method DnsCacheStorage.Delete should have comment or be unexported (golint)
    • Line 81: warning: exported method DnsCacheStorage.Set should have comment or be unexported (golint)
    • tyk/user/policy.go
    • Line 5: warning: exported type GraphAccessDefinition should have comment or be unexported (golint)
    • Line 8: warning: exported type Policy should have comment or be unexported (golint)
    • Line 33: warning: exported type PolicyPartitions should have comment or be unexported (golint)
    • tyk/rpc/rpc_client.go
    • Line 23: warning: exported var GlobalRPCCallTimeout should have comment or be unexported (golint)
    • Line 132: warning: exported const ClientSingletonCall should have comment (or a comment on this block) or be unexported (golint)
    • Line 136: warning: exported type Config should have comment or be unexported (golint)
    • Line 150: warning: exported function IsEmergencyMode should have comment or be unexported (golint)
    • Line 154: warning: exported function LoadCount should have comment or be unexported (golint)
    • Line 158: warning: exported function Reset should have comment or be unexported (golint)
    • Line 165: warning: exported function ResetEmergencyMode should have comment or be unexported (golint)
    • Line 170: warning: exported function EmitErrorEvent should have comment or be unexported (golint)
    • Line 184: warning: exported function EmitErrorEventKv should have comment or be unexported (golint)
    • Line 348: warning: exported function GroupLogin should have comment or be unexported (golint)
    • Line 484: warning: exported function Disconnect should have comment or be unexported (golint)
    • tyk/gateway/api_loader.go
    • Line 33: warning: exported type ChainObject should have comment or be unexported (golint)
    • Line 519: warning: exported type DummyProxyHandler should have comment or be unexported (golint)
    • tyk/gateway/monitor.go
    • Line 10: warning: exported type Monitor should have comment or be unexported (golint)
    • Line 12: warning: exported method Monitor.Enabled should have comment or be unexported (golint)
    • Line 16: warning: exported method Monitor.Fire should have comment or be unexported (golint)
    • Line 32: warning: exported method Monitor.Check should have comment or be unexported (golint)
    • tyk/gateway/mw_ip_blacklist.go
    • Line 16: warning: exported method IPBlackListMiddleware.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method IPBlackListMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 25: warning: error should be the last type when returning multiple items (golint)
    • Line 52: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/server.go
    • Line 62: warning: exported var GlobalEventsJSVM should have comment or be unexported (golint)
    • Line 719: warning: exported function DoReload should have comment or be unexported (golint)
    • Line 738: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 1246: warning: exported function Start should have comment or be unexported (golint)
    • tyk/gateway/analytics.go
    • Line 20: warning: exported type NetworkStats should have comment or be unexported (golint)
    • Line 27: warning: exported method NetworkStats.Flush should have comment or be unexported (golint)
    • Line 41: warning: exported type Latency should have comment or be unexported (golint)
    • Line 79: warning: exported type GeoData should have comment or be unexported (golint)
    • Line 102: warning: exported method AnalyticsRecord.GetGeo should have comment or be unexported (golint)
    • Line 155: warning: exported method AnalyticsRecord.NormalisePath should have comment or be unexported (golint)
    • Line 167: warning: exported method AnalyticsRecord.SetExpiry should have comment or be unexported (golint)
    • Line 193: warning: exported method RedisAnalyticsHandler.Init should have comment or be unexported (golint)
    • Line 220: warning: exported method RedisAnalyticsHandler.Stop should have comment or be unexported (golint)
    • Line 330: warning: exported function DurationToMillisecond should have comment or be unexported (golint)
    • tyk/dlpython/test_helpers.go
    • Line 9: warning: exported function PyUnicodeFromString should have comment or be unexported (golint)
    • Line 15: warning: exported function PyImportImport should have comment or be unexported (golint)
    • tyk/apidef/api_definitions.go
    • Line 24: warning: exported type AuthProviderCode should have comment or be unexported (golint)
    • Line 25: warning: exported type SessionProviderCode should have comment or be unexported (golint)
    • Line 26: warning: exported type StorageEngineCode should have comment or be unexported (golint)
    • Line 27: warning: exported type TykEvent should have comment or be unexported (golint)
    • Line 28: warning: exported type TykEventHandlerName should have comment or be unexported (golint)
    • Line 30: warning: exported type EndpointMethodAction should have comment or be unexported (golint)
    • Line 31: warning: exported type TemplateMode should have comment or be unexported (golint)
    • Line 33: warning: exported type MiddlewareDriver should have comment or be unexported (golint)
    • Line 34: warning: exported type IdExtractorSource should have comment or be unexported (golint)
    • Line 35: warning: exported type IdExtractorType should have comment or be unexported (golint)
    • Line 36: warning: exported type AuthTypeEnum should have comment or be unexported (golint)
    • Line 37: warning: exported type RoutingTriggerOnType should have comment or be unexported (golint)
    • Line 40: warning: exported const NoAction should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: comment on exported const AuthToken should be of the form "AuthToken ..." (golint)
    • Line 73: warning: comment on exported const All should be of the form "All ..." (golint)
    • Line 79: warning: exported type EndpointMethodMeta should have comment or be unexported (golint)
    • Line 86: warning: exported type EndPointMeta should have comment or be unexported (golint)
    • Line 92: warning: exported type CacheMeta should have comment or be unexported (golint)
    • Line 99: warning: exported type RequestInputType should have comment or be unexported (golint)
    • Line 101: warning: exported type TemplateData should have comment or be unexported (golint)
    • Line 108: warning: exported type TemplateMeta should have comment or be unexported (golint)
    • Line 114: warning: exported type TransformJQMeta should have comment or be unexported (golint)
    • Line 120: warning: exported type HeaderInjectionMeta should have comment or be unexported (golint)
    • Line 128: warning: exported type HardTimeoutMeta should have comment or be unexported (golint)
    • Line 134: warning: exported type TrackEndpointMeta should have comment or be unexported (golint)
    • Line 139: warning: exported type InternalMeta should have comment or be unexported (golint)
    • Line 144: warning: exported type RequestSizeMeta should have comment or be unexported (golint)
    • Line 150: warning: exported type CircuitBreakerMeta should have comment or be unexported (golint)
    • Line 159: warning: exported type StringRegexMap should have comment or be unexported (golint)
    • Line 165: warning: exported type RoutingTriggerOptions should have comment or be unexported (golint)
    • Line 174: warning: exported type RoutingTrigger should have comment or be unexported (golint)
    • Line 180: warning: exported type URLRewriteMeta should have comment or be unexported (golint)
    • Line 189: warning: exported type VirtualMeta should have comment or be unexported (golint)
    • Line 199: warning: exported type MethodTransformMeta should have comment or be unexported (golint)
    • Line 205: warning: exported type ValidatePathMeta should have comment or be unexported (golint)
    • Line 215: warning: exported type GoPluginMeta should have comment or be unexported (golint)
    • Line 222: warning: exported type ExtendedPathsSet should have comment or be unexported (golint)
    • Line 247: warning: exported type VersionInfo should have comment or be unexported (golint)
    • Line 267: warning: exported type AuthProviderMeta should have comment or be unexported (golint)
    • Line 273: warning: exported type SessionProviderMeta should have comment or be unexported (golint)
    • Line 279: warning: exported type EventHandlerTriggerConfig should have comment or be unexported (golint)
    • Line 284: warning: exported type EventHandlerMetaConfig should have comment or be unexported (golint)
    • Line 288: warning: exported type MiddlewareDefinition should have comment or be unexported (golint)
    • Line 295: warning: exported type MiddlewareIdExtractor should have comment or be unexported (golint)
    • Line 302: warning: exported type MiddlewareSection should have comment or be unexported (golint)
    • Line 312: warning: exported type CacheOptions should have comment or be unexported (golint)
    • Line 322: warning: exported type ResponseProcessor should have comment or be unexported (golint)
    • Line 327: warning: exported type HostCheckObject should have comment or be unexported (golint)
    • Line 338: warning: exported type CheckCommand should have comment or be unexported (golint)
    • Line 343: warning: exported type ServiceDiscoveryConfiguration should have comment or be unexported (golint)
    • Line 356: warning: exported type OIDProviderConfig should have comment or be unexported (golint)
    • Line 361: warning: exported type OpenIDOptions should have comment or be unexported (golint)
    • Line 475: warning: exported type AuthConfig should have comment or be unexported (golint)
    • Line 486: warning: exported type SignatureConfig should have comment or be unexported (golint)
    • Line 495: warning: exported type GlobalRateLimit should have comment or be unexported (golint)
    • Line 500: warning: exported type BundleManifest should have comment or be unexported (golint)
    • Line 507: warning: exported type RequestSigningMeta should have comment or be unexported (golint)
    • Line 517: warning: exported type ProxyConfig should have comment or be unexported (golint)
    • Line 538: warning: exported type CORSConfig should have comment or be unexported (golint)
    • Line 572: warning: exported type GraphQLConfigVersion should have comment or be unexported (golint)
    • Line 575: warning: exported const GraphQLConfigVersionNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 580: warning: exported type GraphQLProxyConfig should have comment or be unexported (golint)
    • Line 584: warning: exported type GraphQLEngineConfig should have comment or be unexported (golint)
    • Line 589: warning: exported type GraphQLFieldConfig should have comment or be unexported (golint)
    • Line 596: warning: exported type GraphQLEngineDataSourceKind should have comment or be unexported (golint)
    • Line 599: warning: exported const GraphQLEngineDataSourceKindREST should have comment (or a comment on this block) or be unexported (golint)
    • Line 603: warning: exported type GraphQLEngineDataSource should have comment or be unexported (golint)
    • Line 611: warning: exported type GraphQLTypeFields should have comment or be unexported (golint)
    • Line 616: warning: exported type GraphQLEngineDataSourceConfigREST should have comment or be unexported (golint)
    • Line 624: warning: exported type GraphQLEngineDataSourceConfigGraphQL should have comment or be unexported (golint)
    • Line 630: warning: exported type QueryVariable should have comment or be unexported (golint)
    • Line 656: warning: comment on exported method APIDefinition.EncodeForDB should be of the form "EncodeForDB ..." (golint)
    • Line 697: warning: exported method APIDefinition.DecodeFromDB should have comment or be unexported (golint)
    • Line 763: warning: exported method StringRegexMap.Check should have comment or be unexported (golint)
    • Line 771: warning: exported method StringRegexMap.FindStringSubmatch should have comment or be unexported (golint)
    • Line 786: warning: exported method StringRegexMap.FindAllStringSubmatch should have comment or be unexported (golint)
    • Line 797: warning: exported method StringRegexMap.Init should have comment or be unexported (golint)
    • Line 808: warning: exported function DummyAPI should have comment or be unexported (golint)
    • Line 961: warning: exported var Template should have comment or be unexported (golint)
    • tyk/gateway/api.go
    • Line 1: warning: package comment should be of the form "Package gateway ..." (golint)
    • Line 114: warning: exported type MethodNotAllowedHandler should have comment or be unexported (golint)
    • Line 1001: warning: exported type PolicyUpdateObj should have comment or be unexported (golint)
    • Line 1196: warning: don't use underscores in Go names; var fixed_sessions should be fixedSessions (golint)
    • Line 2194: warning: exported function RevokeTokenHandler should have comment or be unexported (golint)
    • Line 2232: warning: exported function GetStorageForApi should have comment or be unexported (golint)
    • Line 2259: warning: exported function RevokeAllTokensHandler should have comment or be unexported (golint)
    • Line 2312: warning: context.Context should be the first parameter of a function (golint)
    • tyk/gateway/rpc_storage_handler.go
    • Line 98: warning: exported var RPCGlobalCache should have comment or be unexported (golint)
    • Line 168: warning: exported method RPCStorageHandler.GetRawKey should have comment or be unexported (golint)
    • Line 205: warning: exported method RPCStorageHandler.GetMultiKey should have comment or be unexported (golint)
    • Line 219: warning: exported method RPCStorageHandler.GetExp should have comment or be unexported (golint)
    • Line 243: warning: exported method RPCStorageHandler.SetExp should have comment or be unexported (golint)
    • Line 285: warning: exported method RPCStorageHandler.SetRawKey should have comment or be unexported (golint)
    • Line 311: warning: comment on exported method RPCStorageHandler.IncrememntWithExpire should be of the form "IncrememntWithExpire ..." (golint)
    • Line 440: warning: exported method RPCStorageHandler.DeleteAllKeys should have comment or be unexported (golint)
    • Line 445: warning: comment on exported method RPCStorageHandler.DeleteRawKey should be of the form "DeleteRawKey ..." (golint)
    • Line 508: warning: exported method RPCStorageHandler.Publish should have comment or be unexported (golint)
    • Line 513: warning: exported method RPCStorageHandler.GetAndDeleteSet should have comment or be unexported (golint)
    • Line 518: warning: exported method RPCStorageHandler.AppendToSet should have comment or be unexported (golint)
    • Line 542: warning: comment on exported method RPCStorageHandler.SetRollingWindow should be of the form "SetRollingWindow ..." (golint)
    • Line 582: warning: exported method RPCStorageHandler.GetRollingWindow should have comment or be unexported (golint)
    • Line 587: warning: exported method RPCStorageHandler.GetSet should have comment or be unexported (golint)
    • Line 592: warning: exported method RPCStorageHandler.AddToSet should have comment or be unexported (golint)
    • Line 596: warning: exported method RPCStorageHandler.RemoveFromSet should have comment or be unexported (golint)
    • Line 600: warning: exported method RPCStorageHandler.IsRetriableError should have comment or be unexported (golint)
    • Line 607: warning: comment on exported method RPCStorageHandler.GetApiDefinitions should be of the form "GetApiDefinitions ..." (golint)
    • Line 703: warning: exported method RPCStorageHandler.StartRPCLoopCheck should have comment or be unexported (golint)
    • Line 717: warning: exported method RPCStorageHandler.StartRPCKeepaliveWatcher should have comment or be unexported (golint)
    • Line 805: warning: exported method RPCStorageHandler.ProcessKeySpaceChanges should have comment or be unexported (golint)
    • Line 899: warning: exported method RPCStorageHandler.DeleteScanMatch should have comment or be unexported (golint)
    • Line 904: warning: exported method RPCStorageHandler.GetKeyPrefix should have comment or be unexported (golint)
    • Line 909: warning: exported method RPCStorageHandler.AddToSortedSet should have comment or be unexported (golint)
    • Line 913: warning: exported method RPCStorageHandler.GetSortedSetRange should have comment or be unexported (golint)
    • Line 917: warning: exported method RPCStorageHandler.RemoveSortedSetRange should have comment or be unexported (golint)
    • Line 921: warning: exported method RPCStorageHandler.RemoveFromList should have comment or be unexported (golint)
    • Line 926: warning: exported method RPCStorageHandler.GetListRange should have comment or be unexported (golint)
    • Line 931: warning: exported method RPCStorageHandler.Exists should have comment or be unexported (golint)
    • tyk/gateway/testutil.go
    • Line 57: warning: exported var EnableTestDNSMock should have comment or be unexported (golint)
    • Line 78: warning: exported function NewReloadMachinery should have comment or be unexported (golint)
    • Line 84: warning: exported method ReloadMachinery.StartTicker should have comment or be unexported (golint)
    • Line 99: warning: exported method ReloadMachinery.StopTicker should have comment or be unexported (golint)
    • Line 103: warning: exported method ReloadMachinery.ReloadTicker should have comment or be unexported (golint)
    • Line 216: warning: exported function InitTestMain should have comment or be unexported (golint)
    • Line 313: warning: exported function ResetTestConfig should have comment or be unexported (golint)
    • Line 354: warning: exported function RegisterBundle should have comment or be unexported (golint)
    • Line 364: warning: exported function RegisterJSFileMiddleware should have comment or be unexported (golint)
    • Line 410: warning: exported function EnablePort should have comment or be unexported (golint)
    • Line 442: warning: exported type TestHttpResponse should have comment or be unexported (golint)
    • Line 470: warning: comment on exported const TestHttpAny should be of the form "TestHttpAny ..." (golint)
    • Line 473: warning: exported const TestHttpGet should have comment (or a comment on this block) or be unexported (golint)
    • Line 687: warning: comment on exported function CreateSession should be of the form "CreateSession ..." (golint)
    • Line 702: warning: exported function CreateStandardSession should have comment or be unexported (golint)
    • Line 719: warning: exported function CreateStandardPolicy should have comment or be unexported (golint)
    • Line 732: warning: exported function CreatePolicy should have comment or be unexported (golint)
    • Line 748: warning: exported function CreateJWKToken should have comment or be unexported (golint)
    • Line 770: warning: exported function CreateJWKTokenECDSA should have comment or be unexported (golint)
    • Line 809: warning: exported function TestReqBody should have comment or be unexported (golint)
    • Line 828: warning: exported function TestReq should have comment or be unexported (golint)
    • Line 832: warning: exported function CreateDefinitionFromString should have comment or be unexported (golint)
    • Line 839: warning: exported function LoadSampleAPI should have comment or be unexported (golint)
    • Line 853: warning: exported type TestConfig should have comment or be unexported (golint)
    • Line 861: warning: exported type Test should have comment or be unexported (golint)
    • Line 870: warning: exported method Test.Start should have comment or be unexported (golint)
    • Line 933: warning: exported method Test.Do should have comment or be unexported (golint)
    • Line 938: warning: exported method Test.Close should have comment or be unexported (golint)
    • Line 950: warning: exported method Test.Run should have comment or be unexported (golint)
    • Line 955: warning: comment on exported method Test.RunExt should be of the form "RunExt ..." (golint)
    • Line 984: warning: exported function GetTLSClient should have comment or be unexported (golint)
    • Line 1006: warning: exported method Test.CreateSession should have comment or be unexported (golint)
    • Line 1039: warning: exported function StartTest should have comment or be unexported (golint)
    • Line 1291: warning: exported function UpdateAPIVersion should have comment or be unexported (golint)
    • Line 1302: warning: exported function BuildAPI should have comment or be unexported (golint)
    • Line 1320: warning: exported function LoadAPI should have comment or be unexported (golint)
    • Line 1352: warning: exported function BuildAndLoadAPI should have comment or be unexported (golint)
    • Line 1356: warning: exported function CloneAPI should have comment or be unexported (golint)
    • Line 1373: warning: don't use underscores in Go names; var dest_conn should be destConn (golint)
    • Line 1384: warning: don't use underscores in Go names; var client_conn should be clientConn (golint)
    • Line 1459: warning: exported function GenerateTestBinaryData should have comment or be unexported (golint)
    • tyk/signature_validator/validate.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: exported type Validator should have comment or be unexported (golint)
    • Line 16: warning: exported type SignatureValidator should have comment or be unexported (golint)
    • Line 20: warning: exported method SignatureValidator.Init should have comment or be unexported (golint)
    • Line 27: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 33: warning: exported method SignatureValidator.Validate should have comment or be unexported (golint)
    • tyk/tcp/tcp.go
    • Line 20: warning: exported type ConnState should have comment or be unexported (golint)
    • Line 23: warning: exported const Active should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported method Stat.Flush should have comment or be unexported (golint)
    • Line 58: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 75: warning: exported method Proxy.AddDomainHandler should have comment or be unexported (golint)
    • Line 93: warning: exported method Proxy.Swap should have comment or be unexported (golint)
    • Line 100: warning: exported method Proxy.RemoveDomainHandler should have comment or be unexported (golint)
    • Line 107: warning: exported method Proxy.Serve should have comment or be unexported (golint)
    • tyk/certs/manager.go
    • Line 39: warning: exported type CertificateManager should have comment or be unexported (golint)
    • Line 47: warning: exported function NewCertificateManager should have comment or be unexported (golint)
    • Line 95: warning: exported function HexSHA256 should have comment or be unexported (golint)
    • Line 100: warning: exported function ParsePEM should have comment or be unexported (golint)
    • Line 139: warning: exported function ParsePEMCertificate should have comment or be unexported (golint)
    • Line 191: warning: exported type CertificateType should have comment or be unexported (golint)
    • Line 194: warning: exported const CertificatePrivate should have comment (or a comment on this block) or be unexported (golint)
    • Line 221: warning: exported type CertificateMeta should have comment or be unexported (golint)
    • Line 232: warning: exported function ExtractCertificateMeta should have comment or be unexported (golint)
    • Line 245: warning: exported function GetCertIDAndChainPEM should have comment or be unexported (golint)
    • Line 293: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 335: warning: exported method CertificateManager.List should have comment or be unexported (golint)
    • Line 380: warning: comment on exported method CertificateManager.ListPublicKeys should be of the form "ListPublicKeys ..." (golint)
    • Line 424: warning: comment on exported method CertificateManager.ListRawPublicKey should be of the form "ListRawPublicKey ..." (golint)
    • Line 460: warning: exported method CertificateManager.ListAllIds should have comment or be unexported (golint)
    • Line 488: warning: exported method CertificateManager.GetRaw should have comment or be unexported (golint)
    • Line 492: warning: exported method CertificateManager.Add should have comment or be unexported (golint)
    • Line 517: warning: exported method CertificateManager.Delete should have comment or be unexported (golint)
    • Line 527: warning: exported method CertificateManager.CertPool should have comment or be unexported (golint)
    • Line 539: warning: exported method CertificateManager.ValidateRequestCertificate should have comment or be unexported (golint)
    • Line 561: warning: exported method CertificateManager.FlushCache should have comment or be unexported (golint)
    • tyk/test/tcp.go
    • Line 19: warning: exported type TCPTestCase should have comment or be unexported (golint)
    • Line 25: warning: exported type TCPTestRunner should have comment or be unexported (golint)
    • Line 32: warning: exported method TCPTestRunner.Run should have comment or be unexported (golint)
    • Line 94: warning: exported function TcpMock should have comment or be unexported (golint)
    • Line 138: warning: comment on exported function Cert should be of the form "Cert ..." (golint)
    • tyk/gateway/coprocess_id_extractor.go
    • Line 95: warning: exported type ValueExtractor should have comment or be unexported (golint)
    • Line 100: warning: exported type ValueExtractorConfig should have comment or be unexported (golint)
    • Line 105: warning: exported method ValueExtractor.Extract should have comment or be unexported (golint)
    • Line 110: warning: exported method ValueExtractor.ExtractAndCheck should have comment or be unexported (golint)
    • Line 150: warning: exported type RegexExtractor should have comment or be unexported (golint)
    • Line 156: warning: exported type RegexExtractorConfig should have comment or be unexported (golint)
    • Line 163: warning: exported method RegexExtractor.ExtractAndCheck should have comment or be unexported (golint)
    • Line 222: warning: exported type XPathExtractor should have comment or be unexported (golint)
    • Line 228: warning: exported type XPathExtractorConfig should have comment or be unexported (golint)
    • Line 235: warning: exported method XPathExtractor.ExtractAndCheck should have comment or be unexported (golint)
    • tyk/gateway/mw_graphql_complexity.go
    • Line 12: warning: exported type ComplexityFailReason should have comment or be unexported (golint)
    • Line 15: warning: exported const ComplexityFailReasonNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type GraphQLComplexityMiddleware should have comment or be unexported (golint)
    • Line 24: warning: exported method GraphQLComplexityMiddleware.Name should have comment or be unexported (golint)
    • Line 28: warning: exported method GraphQLComplexityMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 33: warning: error should be the last type when returning multiple items (golint)
    • Line 52: warning: exported method GraphQLComplexityMiddleware.DepthLimitEnabled should have comment or be unexported (golint)
    • Line 62: warning: exported method GraphQLComplexityMiddleware.DepthLimitExceeded should have comment or be unexported (golint)
    • Line 121: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/oauth_manager.go
    • Line 60: warning: exported method OAuthClient.GetId should have comment or be unexported (golint)
    • Line 64: warning: exported method OAuthClient.GetSecret should have comment or be unexported (golint)
    • Line 68: warning: exported method OAuthClient.GetRedirectUri should have comment or be unexported (golint)
    • Line 72: warning: exported method OAuthClient.GetUserData should have comment or be unexported (golint)
    • Line 76: warning: exported method OAuthClient.GetPolicyID should have comment or be unexported (golint)
    • Line 80: warning: exported method OAuthClient.GetDescription should have comment or be unexported (golint)
    • Line 235: warning: comment on exported method OAuthHandlers.HandleRevokeToken should be of the form "HandleRevokeToken ..." (golint)
    • Line 256: warning: exported function RevokeToken should have comment or be unexported (golint)
    • Line 268: warning: exported method OAuthHandlers.HandleRevokeAllTokens should have comment or be unexported (golint)
    • Line 303: warning: exported function RevokeAllTokens should have comment or be unexported (golint)
    • Line 457: warning: don't use underscores in Go names; var new_token should be newToken (golint)
    • Line 519: warning: comment on exported type OAuthClientToken should be of the form "OAuthClientToken ..." (with optional leading article) (golint)
    • Line 525: warning: exported type ExtendedOsinClientInterface should have comment or be unexported (golint)
    • Line 530: warning: exported type ExtendedOsinStorageInterface should have comment or be unexported (golint)
    • Line 585: warning: comment on exported type RedisOsinStorageInterface should be of the form "RedisOsinStorageInterface ..." (with optional leading article) (golint)
    • Line 594: warning: exported method RedisOsinStorageInterface.Clone should have comment or be unexported (golint)
    • Line 598: warning: exported method RedisOsinStorageInterface.Close should have comment or be unexported (golint)
    • Line 639: warning: exported method RedisOsinStorageInterface.GetExtendedClient should have comment or be unexported (golint)
    • Line 772: warning: exported method RedisOsinStorageInterface.GetClientTokens should have comment or be unexported (golint)
    • Line 1133: warning: comment on exported method RedisOsinStorageInterface.GetUser should be of the form "GetUser ..." (golint)
    • Line 1155: warning: exported method RedisOsinStorageInterface.SetUser should have comment or be unexported (golint)
    • tyk/gateway/res_handler_header_transform.go
    • Line 14: warning: exported type RevProxyTransform should have comment or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; struct field Target_host should be TargetHost (golint)
    • Line 19: warning: exported type HeaderTransformOptions should have comment or be unexported (golint)
    • Line 23: warning: exported type HeaderTransform should have comment or be unexported (golint)
    • Line 28: warning: exported method HeaderTransform.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method HeaderTransform.Init should have comment or be unexported (golint)
    • Line 40: warning: exported method HeaderTransform.HandleError should have comment or be unexported (golint)
    • Line 43: warning: exported method HeaderTransform.HandleResponse should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; var target_url should be targetURL (golint)
    • tyk/gateway/res_handler_header_injector.go
    • Line 13: warning: exported type HeaderInjectorOptions should have comment or be unexported (golint)
    • Line 18: warning: exported type HeaderInjector should have comment or be unexported (golint)
    • Line 23: warning: exported method HeaderInjector.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method HeaderInjector.Init should have comment or be unexported (golint)
    • Line 31: warning: exported method HeaderInjector.HandleError should have comment or be unexported (golint)
    • Line 34: warning: exported method HeaderInjector.HandleResponse should have comment or be unexported (golint)
    • tyk/gateway/mw_http_signature_validation.go
    • Line 37: warning: exported method HTTPSignatureValidationMiddleware.Name should have comment or be unexported (golint)
    • Line 41: warning: exported method HTTPSignatureValidationMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 41: warning: receiver name k should be consistent with previous receiver name hm for HTTPSignatureValidationMiddleware (golint)
    • Line 45: warning: exported method HTTPSignatureValidationMiddleware.Init should have comment or be unexported (golint)
    • Line 54: warning: error should be the last type when returning multiple items (golint)
    • Line 54: warning: exported method HTTPSignatureValidationMiddleware.ProcessRequest should have comment or be unexported (golint)
    • Line 245: warning: error should be the last type when returning multiple items (golint)
    • Line 274: warning: don't use underscores in Go names; var in_ms should be inMs (golint)
    • Line 288: warning: exported type HMACFieldValues should have comment or be unexported (golint)
    • tyk/gateway/service_discovery.go
    • Line 16: warning: exported type ServiceDiscovery should have comment or be unexported (golint)
    • Line 28: warning: exported method ServiceDiscovery.Init should have comment or be unexported (golint)
    • Line 100: warning: exported method ServiceDiscovery.NestedObject should have comment or be unexported (golint)
    • Line 114: warning: exported method ServiceDiscovery.Object should have comment or be unexported (golint)
    • Line 125: warning: exported method ServiceDiscovery.Hostname should have comment or be unexported (golint)
    • Line 140: warning: exported method ServiceDiscovery.SubObjectFromList should have comment or be unexported (golint)
    • Line 192: warning: exported method ServiceDiscovery.SubObject should have comment or be unexported (golint)
    • Line 201: warning: exported method ServiceDiscovery.ParseObject should have comment or be unexported (golint)
    • Line 213: warning: exported method ServiceDiscovery.ProcessRawData should have comment or be unexported (golint)
    • Line 268: warning: exported method ServiceDiscovery.Target should have comment or be unexported (golint)
    • tyk/config/config.go
    • Line 21: warning: exported type IPsHandleStrategy should have comment or be unexported (golint)
    • Line 28: warning: exported var Default should have comment or be unexported (golint)
    • Line 58: warning: exported const PickFirstStrategy should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported type PoliciesConfig should have comment or be unexported (golint)
    • Line 73: warning: exported type DBAppConfOptionsConfig should have comment or be unexported (golint)
    • Line 79: warning: exported type StorageOptionsConf should have comment or be unexported (golint)
    • Line 98: warning: exported type NormalisedURLConfig should have comment or be unexported (golint)
    • Line 106: warning: exported type NormaliseURLPatterns should have comment or be unexported (golint)
    • Line 112: warning: exported type AnalyticsConfigConfig should have comment or be unexported (golint)
    • Line 127: warning: exported type HealthCheckConfig should have comment or be unexported (golint)
    • Line 132: warning: exported type LivenessCheckConfig should have comment or be unexported (golint)
    • Line 136: warning: exported type DnsCacheConfig should have comment or be unexported (golint)
    • Line 143: warning: exported type MonitorConfig should have comment or be unexported (golint)
    • Line 151: warning: exported type WebHookHandlerConf should have comment or be unexported (golint)
    • Line 159: warning: exported type SlaveOptionsConfig should have comment or be unexported (golint)
    • Line 176: warning: exported type LocalSessionCacheConf should have comment or be unexported (golint)
    • Line 182: warning: exported type HttpServerOptionsConfig should have comment or be unexported (golint)
    • Line 187: warning: don't use underscores in Go names; struct field UseLE_SSL should be UseLESSL (golint)
    • Line 202: warning: exported type AuthOverrideConf should have comment or be unexported (golint)
    • Line 209: warning: exported type UptimeTestsConfigDetail should have comment or be unexported (golint)
    • Line 216: warning: exported type UptimeTestsConfig should have comment or be unexported (golint)
    • Line 221: warning: exported type ServiceDiscoveryConf should have comment or be unexported (golint)
    • Line 225: warning: exported type CoProcessConfig should have comment or be unexported (golint)
    • Line 234: warning: exported type CertificatesConfig should have comment or be unexported (golint)
    • Line 242: warning: exported type SecurityConfig should have comment or be unexported (golint)
    • Line 249: warning: exported type NewRelicConfig should have comment or be unexported (golint)
    • Line 254: warning: exported type Tracer should have comment or be unexported (golint)
    • Line 490: warning: exported type TykError should have comment or be unexported (golint)
    • Line 578: warning: exported method Config.SetEventTriggers should have comment or be unexported (golint)
    • Line 582: warning: exported type CertData should have comment or be unexported (golint)
    • Line 605: warning: exported function Global should have comment or be unexported (golint)
    • Line 609: warning: exported function SetGlobal should have comment or be unexported (golint)
    • Line 615: warning: exported function WriteConf should have comment or be unexported (golint)
    • Line 623: warning: comment on exported function WriteDefault should be of the form "WriteDefault ..." (golint)
    • Line 684: warning: exported method Config.LoadIgnoredIPs should have comment or be unexported (golint)
    • Line 691: warning: exported method Config.StoreAnalytics should have comment or be unexported (golint)
    • tyk/gateway/host_checker_manager.go
    • Line 22: warning: exported var GlobalHostChecker should have comment or be unexported (golint)
    • Line 24: warning: exported type HostCheckerManager should have comment or be unexported (golint)
    • Line 36: warning: exported type UptimeReportData should have comment or be unexported (golint)
    • Line 53: warning: exported method UptimeReportData.SetExpiry should have comment or be unexported (golint)
    • Line 67: warning: exported const UnHealthyHostMetaDataTargetKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 73: warning: don't use underscores in Go names; const UptimeAnalytics_KEYNAME should be UptimeAnalyticsKEYNAME (golint)
    • Line 76: warning: exported method HostCheckerManager.Init should have comment or be unexported (golint)
    • Line 84: warning: exported method HostCheckerManager.Start should have comment or be unexported (golint)
    • Line 91: warning: exported method HostCheckerManager.GenerateCheckerId should have comment or be unexported (golint)
    • Line 140: warning: exported method HostCheckerManager.AmIPolling should have comment or be unexported (golint)
    • Line 179: warning: exported method HostCheckerManager.StartPoller should have comment or be unexported (golint)
    • Line 213: warning: exported method HostCheckerManager.StopPoller should have comment or be unexported (golint)
    • Line 225: warning: exported method HostCheckerManager.OnHostReport should have comment or be unexported (golint)
    • Line 231: warning: exported method HostCheckerManager.OnHostDown should have comment or be unexported (golint)
    • Line 275: warning: exported method HostCheckerManager.OnHostBackUp should have comment or be unexported (golint)
    • Line 299: warning: exported method HostCheckerManager.HostDown should have comment or be unexported (golint)
    • Line 323: warning: exported method HostCheckerManager.PrepareTrackingHost should have comment or be unexported (golint)
    • Line 366: warning: exported method HostCheckerManager.UpdateTrackingList should have comment or be unexported (golint)
    • Line 386: warning: exported method HostCheckerManager.UpdateTrackingListByAPIID should have comment or be unexported (golint)
    • Line 418: warning: exported method HostCheckerManager.ListFromService should have comment or be unexported (golint)
    • Line 458: warning: exported method HostCheckerManager.DoServiceDiscoveryListUpdateForID should have comment or be unexported (golint)
    • Line 476: warning: comment on exported method HostCheckerManager.RecordUptimeAnalytics should be of the form "RecordUptimeAnalytics ..." (golint)
    • Line 532: warning: exported function InitHostCheckManager should have comment or be unexported (golint)
    • Line 543: warning: exported function SetCheckerHostList should have comment or be unexported (golint)
    • tyk/gateway/event_handler_webhooks.go
    • Line 24: warning: exported type WebHookRequestMethod should have comment or be unexported (golint)
    • Line 27: warning: exported const WH_GET should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: comment on exported const EH_WebHook should be of the form "EH_WebHook ..." (golint)
    • Line 34: warning: don't use underscores in Go names; const EH_WebHook should be EHWebHook (golint)
    • Line 128: warning: comment on exported method WebHookHandler.WasHookFired should be of the form "WasHookFired ..." (golint)
    • Line 175: warning: exported method WebHookHandler.Checksum should have comment or be unexported (golint)
    • Line 183: warning: exported method WebHookHandler.BuildRequest should have comment or be unexported (golint)
    • Line 206: warning: exported method WebHookHandler.CreateBody should have comment or be unexported (golint)
    • tyk/gateway/mw_transform_jq_dummy.go
    • Line 11: warning: exported type TransformJQMiddleware should have comment or be unexported (golint)
    • Line 15: warning: exported method TransformJQMiddleware.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method TransformJQMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 31: warning: error should be the last type when returning multiple items (golint)
    • Line 35: warning: exported type TransformJQSpec should have comment or be unexported (golint)
    • tyk/gateway/res_handler_transform.go
    • Line 21: warning: exported type ResponseTransformMiddleware should have comment or be unexported (golint)
    • Line 25: warning: exported method ResponseTransformMiddleware.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method ResponseTransformMiddleware.Init should have comment or be unexported (golint)
    • Line 79: warning: exported method ResponseTransformMiddleware.HandleError should have comment or be unexported (golint)
    • Line 82: warning: exported method ResponseTransformMiddleware.HandleResponse should have comment or be unexported (golint)
    • tyk/gateway/mw_oauth2_key_exists.go
    • Line 18: warning: exported const ErrOAuthAuthorizationFieldMissing should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported method Oauth2KeyExists.Name should have comment or be unexported (golint)
    • Line 56: warning: exported method Oauth2KeyExists.EnabledForSpec should have comment or be unexported (golint)
    • Line 66: warning: error should be the last type when returning multiple items (golint)
    • tyk/user/session.go
    • Line 17: warning: exported type HashType should have comment or be unexported (golint)
    • Line 20: warning: exported const HashPlainText should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: comment on exported type AccessSpec should be of the form "AccessSpec ..." (with optional leading article) (golint)
    • Line 60: warning: exported type FieldAccessDefinition should have comment or be unexported (golint)
    • Line 66: warning: exported type FieldLimits should have comment or be unexported (golint)
    • Line 70: warning: exported type BasicAuthData should have comment or be unexported (golint)
    • Line 75: warning: exported type JWTData should have comment or be unexported (golint)
    • Line 79: warning: exported type Monitor should have comment or be unexported (golint)
    • Line 134: warning: exported function NewSessionState should have comment or be unexported (golint)
    • Line 237: warning: exported method SessionState.SetAccessRights should have comment or be unexported (golint)
    • Line 243: warning: exported method SessionState.SetAccessRight should have comment or be unexported (golint)
    • Line 249: warning: exported method SessionState.SetMetaData should have comment or be unexported (golint)
    • Line 255: warning: exported method SessionState.SetMetaDataKey should have comment or be unexported (golint)
    • Line 261: warning: exported method SessionState.RemoveMetaData should have comment or be unexported (golint)
    • Line 267: warning: exported method SessionState.SetKeyHash should have comment or be unexported (golint)
    • Line 271: warning: exported method SessionState.KeyHashEmpty should have comment or be unexported (golint)
    • Line 275: warning: exported method SessionState.Lifetime should have comment or be unexported (golint)
    • Line 288: warning: exported method SessionState.GetAccessRights should have comment or be unexported (golint)
    • Line 294: warning: exported method SessionState.GetAccessRightByAPIID should have comment or be unexported (golint)
    • Line 301: warning: comment on exported method SessionState.GetPolicyIDs should be of the form "GetPolicyIDs ..." (golint)
    • Line 317: warning: exported method SessionState.GetMetaData should have comment or be unexported (golint)
    • Line 323: warning: exported method SessionState.GetMetaDataByKey should have comment or be unexported (golint)
    • Line 330: warning: exported method SessionState.MD5Hash should have comment or be unexported (golint)
    • Line 334: warning: exported method SessionState.GetKeyHash should have comment or be unexported (golint)
    • Line 342: warning: exported method SessionState.SetPolicies should have comment or be unexported (golint)
    • tyk/gateway/mw_transform.go
    • Line 17: warning: exported function WrappedCharsetReader should have comment or be unexported (golint)
    • Line 26: warning: exported method TransformMiddleware.Name should have comment or be unexported (golint)
    • Line 30: warning: exported method TransformMiddleware.EnabledForSpec should have comment or be unexported (golint)
    • Line 40: warning: error should be the last type when returning multiple items (golint)
    • tyk/gateway/mw_method_transform.go
    • Line 11: warning: comment on exported type TransformMethod should be of the form "TransformMethod ..." (with optional leading article) (golint)
    • Line 16: warning: exported method TransformMethod.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method TransformMethod.EnabledForSpec should have comment or be unexported (golint)
    • Line 30: warning: error should be the last type when returning multiple items (golint)

gocyclo86%

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.

    • tyk/gateway/mw_jwt.go
    • Line 367: warning: cyclomatic complexity 47 of function (*JWTMiddleware).processCentralisedJWT() is high (> 15) (gocyclo)
    • Line 657: warning: cyclomatic complexity 22 of function (*JWTMiddleware).ProcessRequest() is high (> 15) (gocyclo)
    • tyk/gateway/api.go
    • Line 323: warning: cyclomatic complexity 28 of function handleAddOrUpdate() is high (> 15) (gocyclo)
    • Line 478: warning: cyclomatic complexity 19 of function handleGetDetail() is high (> 15) (gocyclo)
    • Line 926: warning: cyclomatic complexity 18 of function keyHandler() is high (> 15) (gocyclo)
    • Line 1285: warning: cyclomatic complexity 16 of function createKeyHandler() is high (> 15) (gocyclo)
    • Line 1468: warning: cyclomatic complexity 16 of function createOauthClient() is high (> 15) (gocyclo)
    • tyk/gateway/coprocess.go
    • Line 296: warning: cyclomatic complexity 38 of function (*CoProcessMiddleware).ProcessRequest() is high (> 15) (gocyclo)
    • Line 73: warning: cyclomatic complexity 20 of function (*CoProcessor).BuildObject() is high (> 15) (gocyclo)
    • tyk/gateway/mw_url_rewrite.go
    • Line 42: warning: cyclomatic complexity 37 of function urlRewrite() is high (> 15) (gocyclo)
    • Line 248: warning: cyclomatic complexity 17 of function replaceVariables() is high (> 15) (gocyclo)
    • tyk/gateway/reverse_proxy.go
    • Line 923: warning: cyclomatic complexity 46 of function (*ReverseProxy).WrappedServeHTTP() is high (> 15) (gocyclo)
    • Line 200: warning: cyclomatic complexity 26 of function TykNewSingleHostReverseProxy() is high (> 15) (gocyclo)
    • tyk/gateway/gateway_test.go
    • Line 449: warning: cyclomatic complexity 28 of function TestAnalytics() is high (> 15) (gocyclo)
    • Line 1588: warning: cyclomatic complexity 19 of function TestWebsocketsSeveralOpenClose() is high (> 15) (gocyclo)
    • tyk/gateway/api_definition.go
    • Line 1139: warning: cyclomatic complexity 49 of function (*APISpec).CheckSpecMatchesStatus() is high (> 15) (gocyclo)
    • Line 1014: warning: cyclomatic complexity 23 of function (*APISpec).getURLStatus() is high (> 15) (gocyclo)
    • Line 1066: warning: cyclomatic complexity 21 of function (*APISpec).URLAllowedAndIgnored() is high (> 15) (gocyclo)
    • Line 256: warning: cyclomatic complexity 18 of function (APIDefinitionLoader).MakeSpec() is high (> 15) (gocyclo)
    • tyk/gateway/mw_js_plugin.go
    • Line 113: warning: cyclomatic complexity 29 of function (*DynamicMiddleware).ProcessRequest() is high (> 15) (gocyclo)
    • Line 408: warning: cyclomatic complexity 26 of function (*JSVM).LoadTykJSApi() is high (> 15) (gocyclo)
    • tyk/gateway/server.go
    • Line 930: warning: cyclomatic complexity 30 of function initialiseSystem() is high (> 15) (gocyclo)
    • Line 1246: warning: cyclomatic complexity 19 of function Start() is high (> 15) (gocyclo)
    • tyk/apidef/importer/wsdl.go
    • Line 87: warning: cyclomatic complexity 26 of function (*WSDLBinding).UnmarshalXML() is high (> 15) (gocyclo)
    • Line 193: warning: cyclomatic complexity 20 of function (*WSDLOperation).UnmarshalXML() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 16 of function (*WSDLDef).ConvertIntoApiVersion() is high (> 15) (gocyclo)
    • tyk/tcp/tcp.go
    • Line 173: warning: cyclomatic complexity 23 of function (*Proxy).handleConn() is high (> 15) (gocyclo)
    • tyk/test/http.go
    • Line 48: warning: cyclomatic complexity 20 of function AssertResponse() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • tyk/gateway/api_loader.go
    • Line 213: warning: ineffectual assignment to mwPreFuncs (ineffassign)
    • Line 214: warning: ineffectual assignment to mwPostFuncs (ineffassign)
    • Line 215: warning: ineffectual assignment to mwPostAuthCheckFuncs (ineffassign)
    • Line 216: warning: ineffectual assignment to mwResponseFuncs (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words

    • tyk/gateway/testutil.go
    • Line 127: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 208: warning: "happend" is a misspelling of "happened" (misspell)
    • Line 254: warning: "ealier" is a misspelling of "earlier" (misspell)