Preparing report...

Report for github.com/devigned/apmz-sdk

A+    Excellent!    Found 23 issues across 46 files

Tweet

gofmt97%

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


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!


gocyclo93%

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.


golint56%

Golint is a linter for Go source code.

    • apmz-sdk/apmz/contracts/requestdata.go
    • Line 5: warning: comment on exported type RequestData should be of the form "RequestData ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported method RequestData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 52: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 57: warning: comment on exported method RequestData.BaseType should be of the form "BaseType ..." (golint)
    • Line 62: warning: comment on exported method RequestData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 120: warning: comment on exported function NewRequestData should be of the form "NewRequestData ..." (golint)
    • apmz-sdk/apmz/contracts/data.go
    • Line 13: warning: comment on exported method Data.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 22: warning: comment on exported function NewData should be of the form "NewData ..." (golint)
    • apmz-sdk/apmz/contracts/domain.go
    • Line 5: warning: comment on exported type Domain should be of the form "Domain ..." (with optional leading article) (golint)
    • Line 9: warning: comment on exported method Domain.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 18: warning: comment on exported function NewDomain should be of the form "NewDomain ..." (golint)
    • apmz-sdk/apmz/contracts/messagedata.go
    • Line 5: warning: comment on exported type MessageData should be of the form "MessageData ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported method MessageData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 34: warning: comment on exported method MessageData.BaseType should be of the form "BaseType ..." (golint)
    • Line 39: warning: comment on exported method MessageData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 67: warning: comment on exported function NewMessageData should be of the form "NewMessageData ..." (golint)
    • apmz-sdk/apmz/contracts/remotedependencydata.go
    • Line 5: warning: comment on exported type RemoteDependencyData should be of the form "RemoteDependencyData ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported method RemoteDependencyData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 60: warning: comment on exported method RemoteDependencyData.BaseType should be of the form "BaseType ..." (golint)
    • Line 65: warning: comment on exported method RemoteDependencyData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 128: warning: comment on exported function NewRemoteDependencyData should be of the form "NewRemoteDependencyData ..." (golint)
    • apmz-sdk/apmz/contracts/base.go
    • Line 5: warning: comment on exported type Base should be of the form "Base ..." (with optional leading article) (golint)
    • Line 13: warning: comment on exported method Base.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 22: warning: comment on exported function NewBase should be of the form "NewBase ..." (golint)
    • apmz-sdk/apmz/contracts/contexttags.go
    • Line 5: warning: exported type ContextTags should have comment or be unexported (golint)
    • Line 7: warning: comment on exported type ApplicationContextTags should be of the form "ApplicationContextTags ..." (with optional leading article) (golint)
    • Line 11: warning: comment on exported type DeviceContextTags should be of the form "DeviceContextTags ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type LocationContextTags should be of the form "LocationContextTags ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported type OperationContextTags should be of the form "OperationContextTags ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported type SessionContextTags should be of the form "SessionContextTags ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported type UserContextTags should be of the form "UserContextTags ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported type CloudContextTags should be of the form "CloudContextTags ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type InternalContextTags should be of the form "InternalContextTags ..." (with optional leading article) (golint)
    • Line 39: warning: comment on exported method ContextTags.Application should be of the form "Application ..." (golint)
    • Line 44: warning: comment on exported method ContextTags.Device should be of the form "Device ..." (golint)
    • Line 49: warning: comment on exported method ContextTags.Location should be of the form "Location ..." (golint)
    • Line 54: warning: comment on exported method ContextTags.Operation should be of the form "Operation ..." (golint)
    • Line 59: warning: comment on exported method ContextTags.Session should be of the form "Session ..." (golint)
    • Line 64: warning: comment on exported method ContextTags.User should be of the form "User ..." (golint)
    • Line 69: warning: comment on exported method ContextTags.Cloud should be of the form "Cloud ..." (golint)
    • Line 74: warning: comment on exported method ContextTags.Internal should be of the form "Internal ..." (golint)
    • Line 79: warning: comment on exported method ApplicationContextTags.GetVer should be of the form "GetVer ..." (golint)
    • Line 89: warning: comment on exported method ApplicationContextTags.SetVer should be of the form "SetVer ..." (golint)
    • Line 99: warning: comment on exported method DeviceContextTags.GetId should be of the form "GetId ..." (golint)
    • Line 108: warning: comment on exported method DeviceContextTags.SetId should be of the form "SetId ..." (golint)
    • Line 117: warning: comment on exported method DeviceContextTags.GetLocale should be of the form "GetLocale ..." (golint)
    • Line 127: warning: comment on exported method DeviceContextTags.SetLocale should be of the form "SetLocale ..." (golint)
    • Line 137: warning: comment on exported method DeviceContextTags.GetModel should be of the form "GetModel ..." (golint)
    • Line 148: warning: comment on exported method DeviceContextTags.SetModel should be of the form "SetModel ..." (golint)
    • Line 159: warning: comment on exported method DeviceContextTags.GetOemName should be of the form "GetOemName ..." (golint)
    • Line 168: warning: comment on exported method DeviceContextTags.SetOemName should be of the form "SetOemName ..." (golint)
    • Line 177: warning: comment on exported method DeviceContextTags.GetOsVersion should be of the form "GetOsVersion ..." (golint)
    • Line 188: warning: comment on exported method DeviceContextTags.SetOsVersion should be of the form "SetOsVersion ..." (golint)
    • Line 199: warning: comment on exported method DeviceContextTags.GetType should be of the form "GetType ..." (golint)
    • Line 210: warning: comment on exported method DeviceContextTags.SetType should be of the form "SetType ..." (golint)
    • Line 221: warning: comment on exported method LocationContextTags.GetIp should be of the form "GetIp ..." (golint)
    • Line 233: warning: comment on exported method LocationContextTags.SetIp should be of the form "SetIp ..." (golint)
    • Line 245: warning: comment on exported method OperationContextTags.GetId should be of the form "GetId ..." (golint)
    • Line 257: warning: comment on exported method OperationContextTags.SetId should be of the form "SetId ..." (golint)
    • Line 269: warning: comment on exported method OperationContextTags.GetName should be of the form "GetName ..." (golint)
    • Line 281: warning: comment on exported method OperationContextTags.SetName should be of the form "SetName ..." (golint)
    • Line 293: warning: comment on exported method OperationContextTags.GetParentId should be of the form "GetParentId ..." (golint)
    • Line 302: warning: comment on exported method OperationContextTags.SetParentId should be of the form "SetParentId ..." (golint)
    • Line 311: warning: comment on exported method OperationContextTags.GetSyntheticSource should be of the form "GetSyntheticSource ..." (golint)
    • Line 323: warning: comment on exported method OperationContextTags.SetSyntheticSource should be of the form "SetSyntheticSource ..." (golint)
    • Line 335: warning: comment on exported method OperationContextTags.GetCorrelationVector should be of the form "GetCorrelationVector ..." (golint)
    • Line 345: warning: comment on exported method OperationContextTags.SetCorrelationVector should be of the form "SetCorrelationVector ..." (golint)
    • Line 355: warning: comment on exported method SessionContextTags.GetId should be of the form "GetId ..." (golint)
    • Line 367: warning: comment on exported method SessionContextTags.SetId should be of the form "SetId ..." (golint)
    • Line 379: warning: comment on exported method SessionContextTags.GetIsFirst should be of the form "GetIsFirst ..." (golint)
    • Line 389: warning: comment on exported method SessionContextTags.SetIsFirst should be of the form "SetIsFirst ..." (golint)
    • Line 399: warning: comment on exported method UserContextTags.GetAccountId should be of the form "GetAccountId ..." (golint)
    • Line 410: warning: comment on exported method UserContextTags.SetAccountId should be of the form "SetAccountId ..." (golint)
    • Line 421: warning: comment on exported method UserContextTags.GetId should be of the form "GetId ..." (golint)
    • Line 432: warning: comment on exported method UserContextTags.SetId should be of the form "SetId ..." (golint)
    • Line 443: warning: comment on exported method UserContextTags.GetAuthUserId should be of the form "GetAuthUserId ..." (golint)
    • Line 454: warning: comment on exported method UserContextTags.SetAuthUserId should be of the form "SetAuthUserId ..." (golint)
    • Line 465: warning: comment on exported method CloudContextTags.GetRole should be of the form "GetRole ..." (golint)
    • Line 475: warning: comment on exported method CloudContextTags.SetRole should be of the form "SetRole ..." (golint)
    • Line 485: warning: comment on exported method CloudContextTags.GetRoleInstance should be of the form "GetRoleInstance ..." (golint)
    • Line 495: warning: comment on exported method CloudContextTags.SetRoleInstance should be of the form "SetRoleInstance ..." (golint)
    • Line 505: warning: comment on exported method InternalContextTags.GetSdkVersion should be of the form "GetSdkVersion ..." (golint)
    • Line 516: warning: comment on exported method InternalContextTags.SetSdkVersion should be of the form "SetSdkVersion ..." (golint)
    • Line 527: warning: comment on exported method InternalContextTags.GetAgentVersion should be of the form "GetAgentVersion ..." (golint)
    • Line 537: warning: comment on exported method InternalContextTags.SetAgentVersion should be of the form "SetAgentVersion ..." (golint)
    • Line 547: warning: comment on exported method InternalContextTags.GetNodeName should be of the form "GetNodeName ..." (golint)
    • Line 557: warning: comment on exported method InternalContextTags.SetNodeName should be of the form "SetNodeName ..." (golint)
    • apmz-sdk/apmz/contracts/exceptiondata.go
    • Line 5: warning: comment on exported type ExceptionData should be of the form "ExceptionData ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported method ExceptionData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 36: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 41: warning: comment on exported method ExceptionData.BaseType should be of the form "BaseType ..." (golint)
    • Line 46: warning: comment on exported method ExceptionData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 88: warning: comment on exported function NewExceptionData should be of the form "NewExceptionData ..." (golint)
    • apmz-sdk/apmz/contracts/exceptiondetails.go
    • Line 5: warning: comment on exported type ExceptionDetails should be of the form "ExceptionDetails ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported method ExceptionDetails.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 61: warning: comment on exported function NewExceptionDetails should be of the form "NewExceptionDetails ..." (golint)
    • apmz-sdk/apmz/contracts/severitylevel.go
    • Line 5: warning: comment on exported type SeverityLevel should be of the form "SeverityLevel ..." (with optional leading article) (golint)
    • Line 9: warning: exported const Verbose should have comment (or a comment on this block) or be unexported (golint)
    • apmz-sdk/apmz/contracts/stackframe.go
    • Line 5: warning: comment on exported type StackFrame should be of the form "StackFrame ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported method StackFrame.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 49: warning: comment on exported function NewStackFrame should be of the form "NewStackFrame ..." (golint)
    • apmz-sdk/apmz/contracts/availabilitydata.go
    • Line 5: warning: comment on exported type AvailabilityData should be of the form "AvailabilityData ..." (with optional leading article) (golint)
    • Line 39: warning: comment on exported method AvailabilityData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 43: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 48: warning: comment on exported method AvailabilityData.BaseType should be of the form "BaseType ..." (golint)
    • Line 53: warning: comment on exported method AvailabilityData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 106: warning: comment on exported function NewAvailabilityData should be of the form "NewAvailabilityData ..." (golint)
    • apmz-sdk/apmz/contracts/datapoint.go
    • Line 5: warning: comment on exported type DataPoint should be of the form "DataPoint ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported method DataPoint.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 49: warning: comment on exported function NewDataPoint should be of the form "NewDataPoint ..." (golint)
    • apmz-sdk/apmz/contracts/envelope.go
    • Line 5: warning: comment on exported type Envelope should be of the form "Envelope ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported method Envelope.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 76: warning: comment on exported function NewEnvelope should be of the form "NewEnvelope ..." (golint)
    • apmz-sdk/apmz/contracts/metricdata.go
    • Line 5: warning: comment on exported type MetricData should be of the form "MetricData ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported method MetricData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 26: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 31: warning: comment on exported method MetricData.BaseType should be of the form "BaseType ..." (golint)
    • Line 36: warning: comment on exported method MetricData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 63: warning: comment on exported function NewMetricData should be of the form "NewMetricData ..." (golint)
    • apmz-sdk/apmz/contracts/pageviewdata.go
    • Line 5: warning: comment on exported type PageViewData should be of the form "PageViewData ..." (with optional leading article) (golint)
    • Line 21: warning: comment on exported method PageViewData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 25: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 30: warning: comment on exported method PageViewData.BaseType should be of the form "BaseType ..." (golint)
    • Line 35: warning: comment on exported method PageViewData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 78: warning: comment on exported function NewPageViewData should be of the form "NewPageViewData ..." (golint)
    • apmz-sdk/apmz/contracts/contexttagkeys.go
    • Line 8: warning: comment on exported const ApplicationVersion should be of the form "ApplicationVersion ..." (golint)
    • Line 12: warning: comment on exported const DeviceId should be of the form "DeviceId ..." (golint)
    • Line 15: warning: comment on exported const DeviceLocale should be of the form "DeviceLocale ..." (golint)
    • Line 19: warning: comment on exported const DeviceModel should be of the form "DeviceModel ..." (golint)
    • Line 24: warning: comment on exported const DeviceOEMName should be of the form "DeviceOEMName ..." (golint)
    • Line 27: warning: comment on exported const DeviceOSVersion should be of the form "DeviceOSVersion ..." (golint)
    • Line 32: warning: comment on exported const DeviceType should be of the form "DeviceType ..." (golint)
    • Line 37: warning: comment on exported const LocationIp should be of the form "LocationIp ..." (golint)
    • Line 43: warning: comment on exported const OperationId should be of the form "OperationId ..." (golint)
    • Line 49: warning: comment on exported const OperationName should be of the form "OperationName ..." (golint)
    • Line 55: warning: comment on exported const OperationParentId should be of the form "OperationParentId ..." (golint)
    • Line 58: warning: comment on exported const OperationSyntheticSource should be of the form "OperationSyntheticSource ..." (golint)
    • Line 64: warning: comment on exported const OperationCorrelationVector should be of the form "OperationCorrelationVector ..." (golint)
    • Line 68: warning: comment on exported const SessionId should be of the form "SessionId ..." (golint)
    • Line 74: warning: comment on exported const SessionIsFirst should be of the form "SessionIsFirst ..." (golint)
    • Line 78: warning: comment on exported const UserAccountId should be of the form "UserAccountId ..." (golint)
    • Line 83: warning: comment on exported const UserId should be of the form "UserId ..." (golint)
    • Line 88: warning: comment on exported const UserAuthUserId should be of the form "UserAuthUserId ..." (golint)
    • Line 93: warning: comment on exported const CloudRole should be of the form "CloudRole ..." (golint)
    • Line 97: warning: comment on exported const CloudRoleInstance should be of the form "CloudRoleInstance ..." (golint)
    • Line 101: warning: comment on exported const InternalSdkVersion should be of the form "InternalSdkVersion ..." (golint)
    • Line 106: warning: comment on exported const InternalAgentVersion should be of the form "InternalAgentVersion ..." (golint)
    • Line 110: warning: comment on exported const InternalNodeName should be of the form "InternalNodeName ..." (golint)
    • Line 141: warning: comment on exported function SanitizeTags should be of the form "SanitizeTags ..." (golint)
    • apmz-sdk/apmz/contracts/datapointtype.go
    • Line 5: warning: comment on exported type DataPointType should be of the form "DataPointType ..." (with optional leading article) (golint)
    • Line 9: warning: exported const Measurement should have comment (or a comment on this block) or be unexported (golint)
    • apmz-sdk/apmz/contracts/eventdata.go
    • Line 5: warning: comment on exported type EventData should be of the form "EventData ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported method EventData.EnvelopeName should be of the form "EnvelopeName ..." (golint)
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 34: warning: comment on exported method EventData.BaseType should be of the form "BaseType ..." (golint)
    • Line 39: warning: comment on exported method EventData.Sanitize should be of the form "Sanitize ..." (golint)
    • Line 77: warning: comment on exported function NewEventData should be of the form "NewEventData ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!