Preparing report...

Report for github.com/nexmo-community/nexmo-go

A+    Excellent!    Found 16 issues across 20 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!


gocyclo100%

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.

No problems detected. Good job!


golint20%

Golint is a linter for Go source code.

    • nexmo-go/application_base.go
    • Line 5: warning: comment on exported type ApplicationService should be of the form "ApplicationService ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported method ApplicationService.SetBaseURL should be of the form "SetBaseURL ..." (golint)
    • nexmo-go/insight.go
    • Line 9: warning: exported type BasicInsightRequest should have comment or be unexported (golint)
    • Line 15: warning: exported type BasicInsightResponse should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method InsightService.GetBasicInsight should be of the form "GetBasicInsight ..." (golint)
    • Line 51: warning: exported type StandardInsightRequest should have comment or be unexported (golint)
    • Line 58: warning: exported type PortedStatus should have comment or be unexported (golint)
    • Line 60: warning: exported type CallerType should have comment or be unexported (golint)
    • Line 63: warning: exported const PortedStatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: exported type StandardInsightResponse should have comment or be unexported (golint)
    • Line 90: warning: exported type NetworkType should have comment or be unexported (golint)
    • Line 93: warning: exported const NetworkTypeMobile should have comment (or a comment on this block) or be unexported (golint)
    • Line 102: warning: exported type CarrierRecord should have comment or be unexported (golint)
    • Line 109: warning: comment on exported method InsightService.GetStandardInsight should be of the form "GetStandardInsight ..." (golint)
    • Line 121: warning: exported type AdvancedInsightRequest should have comment or be unexported (golint)
    • Line 129: warning: exported type RoamingStatus should have comment or be unexported (golint)
    • Line 131: warning: exported type ValidNumberStatus should have comment or be unexported (golint)
    • Line 133: warning: exported type ReachableStatus should have comment or be unexported (golint)
    • Line 135: warning: exported type IPMatchLevel should have comment or be unexported (golint)
    • Line 137: warning: exported type IPWarnings should have comment or be unexported (golint)
    • Line 139: warning: exported type LookupOutcome should have comment or be unexported (golint)
    • Line 142: warning: exported const RoamingStatusRoaming should have comment (or a comment on this block) or be unexported (golint)
    • Line 168: warning: exported type AdvancedInsightResponse should have comment or be unexported (golint)
    • Line 187: warning: comment on exported method InsightService.GetAdvancedInsight should be of the form "GetAdvancedInsight ..." (golint)
    • nexmo-go/nexmo.go
    • Line 1: warning: package comment should be of the form "Package nexmo ..." (golint)
    • Line 12: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 43: warning: exported type APIError should have comment or be unexported (golint)
    • nexmo-go/application.go
    • Line 9: warning: exported type CreateApplicationRequest should have comment or be unexported (golint)
    • Line 19: warning: exported type ApplicationConfiguration should have comment or be unexported (golint)
    • Line 36: warning: exported type CreateApplicationResponse should have comment or be unexported (golint)
    • Line 38: warning: comment on exported method ApplicationService.CreateApplication should be of the form "CreateApplication ..." (golint)
    • Line 49: warning: exported type ListApplicationsRequest should have comment or be unexported (golint)
    • Line 55: warning: exported type ListApplicationsResponse should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method ApplicationService.ListApplications should be of the form "ListApplications ..." (golint)
    • Line 75: warning: exported type GetApplicationRequest should have comment or be unexported (golint)
    • Line 81: warning: exported type GetApplicationResponse should have comment or be unexported (golint)
    • Line 83: warning: comment on exported method ApplicationService.GetApplication should be of the form "GetApplication ..." (golint)
    • Line 95: warning: exported type ModifyApplicationRequest should have comment or be unexported (golint)
    • Line 97: warning: exported type ModifyApplicationResponse should have comment or be unexported (golint)
    • Line 99: warning: comment on exported method ApplicationService.ModifyApplication should be of the form "ModifyApplication ..." (golint)
    • Line 110: warning: comment on exported method ApplicationService.DeleteApplication should be of the form "DeleteApplication ..." (golint)
    • nexmo-go/call_base.go
    • Line 5: warning: comment on exported type CallService should be of the form "CallService ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported method CallService.SetBaseURL should be of the form "SetBaseURL ..." (golint)
    • nexmo-go/sms_base.go
    • Line 5: warning: comment on exported type SMSService should be of the form "SMSService ..." (with optional leading article) (golint)
    • Line 11: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 14: warning: exported const MessageTypeText should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported method SMSService.SetBaseURL should have comment or be unexported (golint)
    • nexmo-go/verify.go
    • Line 8: warning: exported type StartVerificationRequest should have comment or be unexported (golint)
    • Line 22: warning: exported type StartVerificationResponse should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method VerifyService.Start should be of the form "Start ..." (golint)
    • Line 39: warning: exported type CheckVerificationRequest should have comment or be unexported (golint)
    • Line 46: warning: exported type CheckVerificationResponse should have comment or be unexported (golint)
    • Line 66: warning: exported type SearchVerificationRequest should have comment or be unexported (golint)
    • Line 71: warning: exported type SearchVerificationResponse should have comment or be unexported (golint)
    • Line 109: warning: exported type ControlVerificationRequest should have comment or be unexported (golint)
    • Line 115: warning: exported type ControlVerificationResponse should have comment or be unexported (golint)
    • Line 121: warning: comment on exported method VerifyService.Control should be of the form "Control ..." (golint)
    • nexmo-go/auth.go
    • Line 15: warning: exported type AuthType should have comment or be unexported (golint)
    • Line 17: warning: exported type RandomProvider should have comment or be unexported (golint)
    • Line 22: warning: exported const ApiSecretAuth should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: comment on exported type AuthSet should be of the form "AuthSet ..." (with optional leading article) (golint)
    • Line 33: warning: exported function NewAuthSet should have comment or be unexported (golint)
    • Line 37: warning: exported method AuthSet.ApplyAPICredentials should have comment or be unexported (golint)
    • Line 41: warning: exported method AuthSet.ApplyJWT should have comment or be unexported (golint)
    • Line 50: warning: exported method AuthSet.GenerateToken should have comment or be unexported (golint)
    • Line 57: warning: exported method AuthSet.SetAPISecret should have comment or be unexported (golint)
    • Line 64: warning: exported method AuthSet.SetApplicationAuth should have comment or be unexported (golint)
    • Line 114: warning: exported type Credentials should have comment or be unexported (golint)
    • nexmo-go/developer_base.go
    • Line 5: warning: comment on exported type DeveloperService should be of the form "DeveloperService ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported method DeveloperService.SetBaseURL should be of the form "SetBaseURL ..." (golint)
    • nexmo-go/sms.go
    • Line 7: warning: comment on exported method SMSService.SendSMS should be of the form "SendSMS ..." (golint)
    • nexmo-go/verify_base.go
    • Line 5: warning: comment on exported type VerifyService should be of the form "VerifyService ..." (with optional leading article) (golint)
    • Line 19: warning: exported method VerifyService.SetBaseURL should have comment or be unexported (golint)
    • nexmo-go/developer_account_pricing.go
    • Line 8: warning: exported type GetOutboundPricingForCountryRequest should have comment or be unexported (golint)
    • Line 13: warning: exported type CountryPrices should have comment or be unexported (golint)
    • Line 32: warning: exported type GetOutboundProductPricingRequest should have comment or be unexported (golint)
    • Line 38: warning: exported type GetOutboundProductPricingResponse should have comment or be unexported (golint)
    • Line 48: warning: exported type NetworkDetails should have comment or be unexported (golint)
    • Line 70: warning: exported type GetPrefixOutboundPricingRequest should have comment or be unexported (golint)
    • Line 75: warning: exported type GetPrefixOutboundPricingResponse should have comment or be unexported (golint)
    • Line 80: warning: exported type NetworkPrice should have comment or be unexported (golint)
    • nexmo-go/insight_base.go
    • Line 5: warning: comment on exported type InsightService should be of the form "InsightService ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported method InsightService.SetBaseURL should be of the form "SetBaseURL ..." (golint)
    • nexmo-go/structs.go
    • Line 3: warning: exported type Links should have comment or be unexported (golint)
    • Line 11: warning: exported type Link should have comment or be unexported (golint)
    • Line 15: warning: exported type PhoneCallEndpoint should have comment or be unexported (golint)
    • Line 21: warning: exported type WebSocketCallEndpoint should have comment or be unexported (golint)
    • Line 28: warning: exported type SIPCallEndpoint should have comment or be unexported (golint)
    • Line 33: warning: exported type SendSMSRequest should have comment or be unexported (golint)
    • Line 60: warning: exported type SendSMSResponse should have comment or be unexported (golint)
    • Line 65: warning: exported type SendSMSResponseMessage should have comment or be unexported (golint)
    • Line 76: warning: exported type CreateCallRequest should have comment or be unexported (golint)
    • Line 88: warning: exported type CreateCallResponse should have comment or be unexported (golint)
    • Line 95: warning: exported type SearchCallsRequest should have comment or be unexported (golint)
    • Line 105: warning: exported type SearchCallsResponse should have comment or be unexported (golint)
    • Line 113: warning: exported type EmbeddedCalls should have comment or be unexported (golint)
    • Line 117: warning: exported type CallInfo should have comment or be unexported (golint)
    • Line 132: warning: exported type SimpleModifyCallRequest should have comment or be unexported (golint)
    • Line 136: warning: exported type TransferCallRequest should have comment or be unexported (golint)
    • Line 141: warning: exported type ModifyCallResponse should have comment or be unexported (golint)
    • Line 146: warning: exported type TransferDestination should have comment or be unexported (golint)
    • Line 151: warning: exported type CallErrorResponse should have comment or be unexported (golint)
    • Line 156: warning: exported type StreamRequest should have comment or be unexported (golint)
    • Line 161: warning: exported type TalkRequest should have comment or be unexported (golint)
    • Line 167: warning: exported type DTMFRequest should have comment or be unexported (golint)
    • Line 171: warning: exported type GetBalanceResponse should have comment or be unexported (golint)
    • Line 175: warning: exported type GetPhoneOutboundPricingResponse should have comment or be unexported (golint)
    • nexmo-go/calls.go
    • Line 32: warning: comment on exported method CallService.GetCallInfo should be of the form "GetCallInfo ..." (golint)
    • Line 41: warning: comment on exported method CallService.ModifyCall should be of the form "ModifyCall ..." (golint)
    • Line 50: warning: comment on exported method CallService.Stream should be of the form "Stream ..." (golint)
    • Line 59: warning: comment on exported method CallService.StopStream should be of the form "StopStream ..." (golint)
    • Line 67: warning: comment on exported method CallService.Talk should be of the form "Talk ..." (golint)
    • Line 76: warning: comment on exported method CallService.StopTalk should be of the form "StopTalk ..." (golint)
    • Line 85: warning: comment on exported method CallService.SendDTMF should be of the form "SendDTMF ..." (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!


misspell95%

Misspell Finds commonly misspelled English words